From 4fc2904a87d7e4fa5f7bf1d61b37de1c6ddc850d Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 11 Oct 2016 14:17:41 -0700 Subject: [PATCH] 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 --- .../ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js index bcd39b4bc2..41cfd7b346 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js @@ -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 ) {