Fix up "Simplify some SET logic"

By 'simplifying', I broke stuff.

This reverts commit b7227f96fe.

Change-Id: I46fdcf336f556680fa72df0893447b6850cc4b1d
This commit is contained in:
Alex Monk 2015-12-15 02:44:10 +00:00 committed by Alex Monk
parent b7227f96fe
commit 39af893c75

View file

@ -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();
} }