mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
Merge "Don't allow document save if we're already tearing down the surface"
This commit is contained in:
commit
1ff53d1b77
|
@ -865,6 +865,10 @@ ve.init.mw.ViewPageTarget.prototype.onSaveDialogReviewComplete = function ( wiki
|
|||
* succeeds/fails.
|
||||
*/
|
||||
ve.init.mw.ViewPageTarget.prototype.saveDocument = function ( saveDeferred ) {
|
||||
if ( this.deactivating ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var saveOptions = this.getSaveOptions();
|
||||
this.emit( 'saveInitiated' );
|
||||
|
||||
|
|
Loading…
Reference in a new issue