DesktopArticleTarget: Discard edit summary when canceling an edit

Bug: T160130
Change-Id: I2a631b63c3f90bcd60a81312ee031f90dcbf6586
This commit is contained in:
David Lynch 2017-03-14 10:53:21 -05:00
parent 9404888490
commit 4864189781

View file

@ -652,6 +652,7 @@ ve.init.mw.DesktopArticleTarget.prototype.cancel = function ( trackMechanism ) {
target.clearState(); target.clearState();
target.initialEditSummary = new mw.Uri().query.summary; target.initialEditSummary = new mw.Uri().query.summary;
target.editSummaryValue = null;
target.deactivating = false; target.deactivating = false;
$( 'html' ).removeClass( 've-deactivating' ); $( 'html' ).removeClass( 've-deactivating' );