DesktopArticleTarget: Clear stored summary value after save completes

Bug: T160130
Change-Id: Id906da69c743f3a966d4182862cd173b26017059
This commit is contained in:
David Lynch 2017-03-09 17:26:08 -06:00
parent 0d113dd032
commit a9f54aacd4

View file

@ -41,6 +41,8 @@ ve.init.mw.ArticleTarget = function VeInitMwArticleTarget( pageName, revisionId,
this.toolbarScrollOffset = mw.config.get( 'wgVisualEditorToolbarScrollOffset', 0 );
this.section = null;
this.sectionTitle = null;
this.editSummaryValue = null;
this.initialEditSummary = null;
this.$templatesUsed = null;
this.checkboxFields = null;
@ -538,6 +540,9 @@ ve.init.mw.ArticleTarget.prototype.saveSuccess = function ( doc, saveData, respo
* @fires save
*/
ve.init.mw.ArticleTarget.prototype.saveComplete = function () {
this.editSummaryValue = null;
this.initialEditSummary = null;
this.saveDeferred.resolve();
this.emit( 'save' );
};