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:
Svantje Lilienthal 2022-07-25 16:31:35 +02:00
parent c51d1f86f2
commit a6e66f7e65

View file

@ -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.
*