Keep edit summary when switching between VE and NWE

Bug: T144906
Change-Id: I0b979959f4b6f33167ba4a225184fda7ca13a1e8
This commit is contained in:
Alex Monk 2016-10-31 16:48:00 +00:00
parent 7bc59cd65c
commit 1384df41c8

View file

@ -1589,6 +1589,7 @@ ve.init.mw.ArticleTarget.prototype.setupToolbar = function () {
this.attachToolbarSaveButton();
if ( this.saveDialog ) {
this.initialEditSummary = this.saveDialog.editSummaryInput.getValue();
this.saveDialog.disconnect( this );
this.saveDialog = null;
}