Follow-up I9547dfd: Only enable VE tabs if VE is available

Otherwise VE is launched on namespaces where it is disabled
(but NWE is enabled).

Bug: T147890
Change-Id: I62f4ff96b991553a4eb0be9efb2e84bc80ca2bb4
This commit is contained in:
Ed Sanders 2016-10-11 14:17:41 -07:00
parent 00af103293
commit 4fc2904a87

View file

@ -970,7 +970,7 @@
if ( !conf.singleEditTab || tabPreference === 'multi-tab' ) {
// … set the skin up with both tabs and both section edit links.
init.setupSkin();
} else if ( pageCanLoadVE && onlyTabIsVE ) {
} else if ( init.isVisualAvailable && pageCanLoadVE && onlyTabIsVE ) {
// … on single-edit-tab wikis, where VE is the user's preferred editor
// Handle section edit link clicks
$( '.mw-editsection a' ).on( 'click', function ( e ) {