mediawiki-extensions-Visual.../modules/ve-mw/init
Bartosz Dziewoński d687e01208 Do not check for visual editor availability when loading source editor
Follow-up to fefb76eebc. Prior to that
change, the condition for this looked like this:

  // … if on a ?veaction=edit/editsource page
  (
    isViewPage &&
    uri.query.veaction in editModes &&
    (
      uri.query.veaction === 'editsource' ||
      init.isVisualAvailable
    )
  )

In the refactor, the `uri.query.veaction === 'editsource'` check was
lost.

Since that code is pretty messy (probably predating the source editor
and hastily adjusted), instead change the check for `isVisualAvailable`
to just `isAvailable`. If the requested mode turns out to not be
available later, the editor will not load.

Bug: T165146
Change-Id: Idfaf9115dd20cec8f8e044a704b93b07984cdcee
2017-05-16 18:57:56 +02:00
..
styles Revert "Dropping IE9: Remove disableUneditableContent from DesktopArticleTarget" 2017-04-14 13:53:56 +00:00
targets Do not check for visual editor availability when loading source editor 2017-05-16 18:57:56 +02:00
ve.init.mw.ApiResponseCache.js
ve.init.mw.ArticleTarget.js Generate visual diff only after switching to visual diff tab 2017-05-09 10:09:39 +00:00
ve.init.mw.ArticleTargetEvents.js ArticleTarget: Give users a specific message when HookAborted errors happen 2017-01-11 10:46:30 -08:00
ve.init.mw.ArticleTargetLoader.js Remove #wpTextbox1 fallback from ArticleTargetLoader#requestPageData 2017-04-09 22:28:03 +01:00
ve.init.mw.GalleryImageInfoCache.js
ve.init.mw.ImageInfoCache.js
ve.init.mw.js
ve.init.mw.LinkCache.js LinkCache: don't treat a link with a fragment as a selflink 2017-04-11 12:19:01 -05:00
ve.init.mw.Platform.init.js
ve.init.mw.Platform.js
ve.init.mw.Target.js Fix typo in surfaceReady documentation 2017-03-22 20:35:42 +00:00
ve.init.mw.trackSubscriber.js
ve.init.MWEditingTabDialog.js
ve.init.MWEditModeTool.js EditModeTool: Use state-describing, not action-describing labels 2017-04-26 11:33:14 -07:00
ve.init.MWVESwitchConfirmDialog.js
ve.init.MWVESwitchPopupWidget.js Use list tool group for editor switching 2017-02-28 15:06:48 +00:00
ve.init.MWWelcomeDialog.js