mediawiki-extensions-Visual.../modules/ve-mw/preinit
Bartosz Dziewoński 3458d8a27e Don't offer switching to VE if it's disabled in preferences
In many places we check whether VE is available before doing things
(init.isVisualAvailable). This variable includes checks for whether
the page is wikitext, etc. Now it will also include checking whether
VE is enabled in user preferences.

In almost all places where init.isVisualAvailable is used, we were
already also checking if VE is enabled, so this doesn't affect the
behavior. But notably, we didn't do it when showing the option to
switch to VE in the welcome dialog and in the toolbar, causing T243723.

Changing init.isVisualAvailable this way makes it consistent with
init.isWikitextAvailable, which has always included a checking whether
NWE is enabled in user preferences.

Bug: T243723
Change-Id: Ie174bc3f16bceb29cb155b9223e0acef70167fd6
2020-01-28 16:26:03 -08:00
..
styles doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
.eslintrc.json Replace $.when with ve.promiseAll 2019-11-04 22:06:54 +08:00
ve.init.mw.ArticleTargetLoader.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.ArticleTargetSaver.js Fix variable scope in ArticleTargetSaver 2020-01-24 15:32:46 -08:00
ve.init.mw.DesktopArticleTarget.init.js Don't offer switching to VE if it's disabled in preferences 2020-01-28 16:26:03 -08:00
ve.init.mw.DiffLoader.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.DiffPage.init.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.ProgressBarWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.TempWikitextEditorWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWEditingTabDialog.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWEditModeTool.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWVESwitchConfirmDialog.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWVESwitchPopupWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWWelcomeDialog.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00