mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-15 02:55:04 +00:00
Only the "show/hide options" button should be hidden
We added this line in order to make the sidebar show/hide behavior the same as the new VisualEditor template dialog, but it should have only affected this one button. When additional actions are added, such as Citoid's "change reference type" button, these should still be available. Bug: T293280 Change-Id: I6b2c716fff991781e36ba21b541ea2ff918cfeb3
This commit is contained in:
parent
30cfb7c05a
commit
53d055d1e4
|
@ -44,7 +44,9 @@ ve.ui.MWCitationDialog.prototype.autoExpandSidebar = function () {
|
|||
ve.ui.MWCitationDialog.super.prototype.autoExpandSidebar.call( this );
|
||||
|
||||
if ( !this.useInlineDescriptions && !this.useNewSidebar && !this.isSidebarExpanded ) {
|
||||
this.$otherActions.toggleClass( 'oo-ui-element-hidden', true );
|
||||
this.actions.forEach( { actions: [ 'mode' ] }, function ( action ) {
|
||||
action.toggle( false );
|
||||
} );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue