mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Don't show confirm dialog when switching to NWE
Bug: T148099 Change-Id: Icd756dc31ef8628795915ea972bb0ded385532ed
This commit is contained in:
parent
de2f07d523
commit
460df1f25f
|
@ -122,6 +122,16 @@ ve.init.mw.DesktopWikitextArticleTarget.prototype.switchToVisualEditor = functio
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.init.mw.DesktopWikitextArticleTarget.prototype.editSource = function () {
|
||||
// Don't bother with a confirm dialog when switching to the new wikitext editor.
|
||||
// Second argument (modified) is never checked if we are keeping changes, so
|
||||
// don't bother computing it.
|
||||
this.switchToWikitextEditor( false );
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue