mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
ArticleTarget: use existing initialEditSummary if present
Switching modes recreates the toolbar, so if someone has already edited the save summary it shouldn't update the initialEditSummary to that. Bug: T159686 Change-Id: I4109442853916bebae2bce804fcd6777e3eb6d34
This commit is contained in:
parent
832674fa85
commit
261d4e8974
|
@ -1822,7 +1822,7 @@ ve.init.mw.ArticleTarget.prototype.setupToolbar = function () {
|
|||
this.attachToolbarSaveButton();
|
||||
|
||||
if ( this.saveDialog ) {
|
||||
this.initialEditSummary = this.saveDialog.editSummaryInput.getValue();
|
||||
this.initialEditSummary = this.initialEditSummary || this.saveDialog.editSummaryInput.getValue();
|
||||
this.saveDialog.disconnect( this );
|
||||
this.saveDialog = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue