Merge "Don't navigate back immediately when trying to teardown"

This commit is contained in:
jenkins-bot 2020-10-02 00:22:23 +00:00 committed by Gerrit Code Review
commit 05ec421073

View file

@ -357,7 +357,7 @@ ve.init.mw.MobileArticleTarget.prototype.loadFail = function ( code, errorDetail
// Parent method
ve.init.mw.MobileArticleTarget.super.prototype.loadFail.apply( this, arguments );
window.history.back();
this.overlay.onExitClick( $.Event() );
mw.notify( this.extractErrorMessages( errorDetails ) );
};
@ -428,7 +428,7 @@ ve.init.mw.MobileArticleTarget.prototype.saveFail = function ( doc, saveData, wa
* @inheritdoc
*/
ve.init.mw.MobileArticleTarget.prototype.tryTeardown = function () {
window.history.back();
this.overlay.onExitClick( $.Event() );
};
/**