mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Check for saveDialog in ve.init.mw.DesktopArticleTarget.saveComplete
In case the save is triggered without the save dialog (for example, when a null edit is made during suggested edits task in GrowthExperiments) Bug: T298552 Change-Id: Id49b967cfa52d33848e9c911086000fa4501fa7f
This commit is contained in:
parent
3c02dbcc7f
commit
93d54c701b
|
@ -960,7 +960,10 @@ ve.init.mw.DesktopArticleTarget.prototype.saveComplete = function ( data ) {
|
|||
wgIsRedirect: !!data.isRedirect
|
||||
} );
|
||||
|
||||
this.saveDialog.reset();
|
||||
if ( this.saveDialog ) {
|
||||
this.saveDialog.reset();
|
||||
}
|
||||
|
||||
this.replacePageContent(
|
||||
data.content,
|
||||
data.categorieshtml,
|
||||
|
|
Loading…
Reference in a new issue