mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
DesktopArticleTarget: Clear stored summary value after save completes
Bug: T160130 Change-Id: Id906da69c743f3a966d4182862cd173b26017059
This commit is contained in:
parent
0d113dd032
commit
a9f54aacd4
|
@ -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' );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue