Don't show confirm dialog when switching to NWE

Bug: T148099
Change-Id: Icd756dc31ef8628795915ea972bb0ded385532ed
This commit is contained in:
Ed Sanders 2016-10-16 19:37:05 -07:00
parent de2f07d523
commit 460df1f25f

View file

@ -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
*/