mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Move switchToWikitext to switchToFallbackWikitext
This should be a no-op as the inherited switchToWikitext implementation will always call switchToFallbackWikitext if 'source' is not passed as a supported mode (which it isn't currently in MobileFrontend). Change-Id: I213e7d54d158127b5c42bc05ff9ea2dececc42fe
This commit is contained in:
parent
bc29a8cdd1
commit
8726a71342
|
@ -352,7 +352,7 @@ ve.init.mw.MobileArticleTarget.prototype.loadFail = function ( code, errorDetail
|
|||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.init.mw.MobileArticleTarget.prototype.switchToWikitextEditor = function ( modified ) {
|
||||
ve.init.mw.MobileArticleTarget.prototype.switchToFallbackWikitextEditor = function ( modified ) {
|
||||
var dataPromise;
|
||||
if ( modified ) {
|
||||
dataPromise = this.getWikitextDataPromiseForDoc( modified ).then( function ( response ) {
|
||||
|
|
Loading…
Reference in a new issue