mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 09:26:37 +00:00
Fix up "Simplify some SET logic"
By 'simplifying', I broke stuff.
This reverts commit b7227f96fe
.
Change-Id: I46fdcf336f556680fa72df0893447b6850cc4b1d
This commit is contained in:
parent
b7227f96fe
commit
39af893c75
|
@ -773,7 +773,9 @@
|
||||||
if (
|
if (
|
||||||
conf.singleEditTab &&
|
conf.singleEditTab &&
|
||||||
mw.user.options.get( 'visualeditor-tabs' ) !== 'multi-tab' &&
|
mw.user.options.get( 'visualeditor-tabs' ) !== 'multi-tab' &&
|
||||||
userPrefEnabled &&
|
userPrefEnabled
|
||||||
|
) {
|
||||||
|
if (
|
||||||
pageCanLoadVE && (
|
pageCanLoadVE && (
|
||||||
mw.user.options.get( 'visualeditor-tabs' ) === 'prefer-ve' ||
|
mw.user.options.get( 'visualeditor-tabs' ) === 'prefer-ve' ||
|
||||||
(
|
(
|
||||||
|
@ -792,6 +794,7 @@
|
||||||
activateTarget();
|
activateTarget();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
} );
|
} );
|
||||||
|
}
|
||||||
} else if ( userPrefEnabled ) {
|
} else if ( userPrefEnabled ) {
|
||||||
init.setupSkin();
|
init.setupSkin();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue