mediawiki-extensions-Visual.../modules/ve-mw
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
..
ce MWTransclusionNode: Implement MWTransclusionTableCell 2017-05-15 12:09:11 -05:00
dm Merge "MWTransclusionNode: Implement MWTransclusionTableCell" 2017-05-15 18:05:01 +00:00
i18n Localisation updates from https://translatewiki.net. 2017-05-14 22:48:41 +02:00
init Do not check for visual editor availability when loading source editor 2017-05-16 18:57:56 +02:00
tests Update VE core submodule to master (fbeb0db2c) 2017-05-10 10:02:54 -05:00
themes MWTransclusionDialog: Move box-shadows to Apex-only 2017-03-30 17:03:35 +01:00
ui Rename deprecated Card to current TabPanel 2017-05-10 11:46:49 -07:00
ve.MWutils.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00