mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Hide PageTriage curation toolbar while VE is open
Bug: 56731 Change-Id: Iee842d4444ead00587dbfb21f93b65bdec728405
This commit is contained in:
parent
a323589401
commit
ddd43b8227
|
@ -1399,6 +1399,9 @@ 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();
|
||||
|
||||
// Hide site notice (if present)
|
||||
$( '#siteNotice:visible' )
|
||||
.addClass( 've-hide' )
|
||||
|
@ -1431,6 +1434,9 @@ ve.init.mw.ViewPageTarget.prototype.restorePage = function () {
|
|||
$( '#ca-ve-edit' ).removeClass( 'selected' );
|
||||
$( '#ca-view' ).addClass( 'selected' );
|
||||
|
||||
// PageTriage bar
|
||||
$( '#mwe-pt-toolbar' ).show();
|
||||
|
||||
// Make site notice visible again (if present)
|
||||
$( '#siteNotice.ve-hide' )
|
||||
.slideDown( 'fast' );
|
||||
|
|
Loading…
Reference in a new issue