mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Merge "Fire hook when VE activates/deactivates"
This commit is contained in:
commit
f0d19359a6
|
@ -1414,8 +1414,7 @@ ve.init.mw.ViewPageTarget.prototype.transformPage = function () {
|
|||
$( '#p-views' ).find( 'li.selected' ).removeClass( 'selected' );
|
||||
$( '#ca-ve-edit' ).addClass( 'selected' );
|
||||
|
||||
// PageTriage bar
|
||||
$( '#mwe-pt-toolbar' ).hide();
|
||||
mw.hook( 've.activate' ).fire();
|
||||
|
||||
// Hide site notice (if present)
|
||||
$( '#siteNotice:visible' )
|
||||
|
@ -1449,8 +1448,7 @@ ve.init.mw.ViewPageTarget.prototype.restorePage = function () {
|
|||
$( '#ca-ve-edit' ).removeClass( 'selected' );
|
||||
$( '#ca-view' ).addClass( 'selected' );
|
||||
|
||||
// PageTriage bar
|
||||
$( '#mwe-pt-toolbar' ).show();
|
||||
mw.hook( 've.deactivate' ).fire();
|
||||
|
||||
// Make site notice visible again (if present)
|
||||
$( '#siteNotice.ve-hide' )
|
||||
|
|
Loading…
Reference in a new issue