From a9f54aacd43492b16f1cb634431491ae8f9dc7ce Mon Sep 17 00:00:00 2001 From: David Lynch Date: Thu, 9 Mar 2017 17:26:08 -0600 Subject: [PATCH] DesktopArticleTarget: Clear stored summary value after save completes Bug: T160130 Change-Id: Id906da69c743f3a966d4182862cd173b26017059 --- modules/ve-mw/init/ve.init.mw.ArticleTarget.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js index d26545725c..c88ab197aa 100644 --- a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js +++ b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js @@ -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' ); };