mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
DesktopArticleTarget: Discard edit summary when canceling an edit
Bug: T160130 Change-Id: I2a631b63c3f90bcd60a81312ee031f90dcbf6586
This commit is contained in:
parent
9404888490
commit
4864189781
|
@ -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' );
|
||||||
|
|
Loading…
Reference in a new issue