Merge "Don't show confirm dialog when switching to NWE"

This commit is contained in:
jenkins-bot 2016-10-26 21:48:15 +00:00 committed by Gerrit Code Review
commit 3750081797

View file

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