mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Merge "Don't show confirm dialog when switching to NWE"
This commit is contained in:
commit
3750081797
|
@ -123,6 +123,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