mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Fix deactivating VE after user explicitly decideas to discard changes
Bug: T134794
Bug: T143042
Change-Id: Idf1941793317a6aff9fe57082b85e3ebff0c72b4
(cherry picked from commit 1ba035e053
)
This commit is contained in:
parent
74458204f7
commit
9da5996c0e
|
@ -499,7 +499,7 @@ ve.init.mw.DesktopArticleTarget.prototype.deactivate = function ( noDialog, trac
|
|||
opened.then( function ( closing ) {
|
||||
closing.then( function ( data ) {
|
||||
if ( data && data.action === 'discard' ) {
|
||||
this.emit( 'deactivate' );
|
||||
target.emit( 'deactivate' );
|
||||
target.cancel( trackMechanism );
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue