mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Remove overwrite of autoExpandSidebar
Since the sidebar is now necessary we do not need the overwrite of autoExpandSidebar anymore. Bug: T313704 Change-Id: I922f951a9eca31a90b5368118629b8c27dea67a5
This commit is contained in:
parent
c51d1f86f2
commit
a6e66f7e65
|
@ -34,19 +34,6 @@ ve.ui.MWCitationDialog.static.name = 'cite';
|
|||
|
||||
/* Methods */
|
||||
|
||||
/**
|
||||
* Hide the "show options" button when using the old workflow.
|
||||
*/
|
||||
ve.ui.MWCitationDialog.prototype.autoExpandSidebar = function () {
|
||||
ve.ui.MWCitationDialog.super.prototype.autoExpandSidebar.call( this );
|
||||
|
||||
if ( !this.useNewSidebar && !this.isSidebarExpanded ) {
|
||||
this.actions.forEach( { actions: [ 'mode' ] }, function ( action ) {
|
||||
action.toggle( false );
|
||||
} );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the reference node to be edited.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue