mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Include edit status in the ve.deactivationComplete event
Rather than setting the wgPostEdit configuration variable when the user uses VisualEditor, i.e. communicating via mutable global state, include whether or not the user edited the page in the ve.deactivationComplete event. Bug: 52955 Change-Id: I0f5067550921008f74221d6c92882adfe404b3a5
This commit is contained in:
parent
674406adb9
commit
5ebacd389d
2
lib/ve
2
lib/ve
|
@ -1 +1 @@
|
|||
Subproject commit 08083de071847735f095afacfcb7d17b3c1ec349
|
||||
Subproject commit 84ced370eb58b493c08a0a7156347e18a85b3001
|
|
@ -242,7 +242,8 @@ ve.init.mw.ViewPageTarget.prototype.deactivate = function ( override ) {
|
|||
this.initialEditSummary = '';
|
||||
|
||||
this.deactivating = false;
|
||||
mw.hook( 've.deactivationComplete' ).fire();
|
||||
|
||||
mw.hook( 've.deactivationComplete' ).fire( this.edited );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue