mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
Merge "SpecialHelpMenuWidget: Use ButtonMenuSelectWidget"
This commit is contained in:
commit
127c8a1396
|
@ -55,7 +55,7 @@
|
|||
|
||||
/* Initialization */
|
||||
|
||||
OO.inheritClass( mw.echo.ui.SpecialHelpMenuWidget, OO.ui.DropdownWidget );
|
||||
OO.inheritClass( mw.echo.ui.SpecialHelpMenuWidget, OO.ui.ButtonMenuSelectWidget );
|
||||
|
||||
/* Events */
|
||||
|
||||
|
@ -72,7 +72,6 @@
|
|||
*/
|
||||
mw.echo.ui.SpecialHelpMenuWidget.prototype.onSourcePageUpdate = function () {
|
||||
this.markAllReadOption.setLabel( this.getMarkAllReadOptionLabel() );
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -85,7 +84,7 @@
|
|||
};
|
||||
|
||||
/**
|
||||
* Handle dropdown menu choose events
|
||||
* Handle menu choose events
|
||||
*
|
||||
* @param {OO.ui.MenuOptionWidget} item Chosen item
|
||||
*/
|
||||
|
@ -105,8 +104,6 @@
|
|||
);
|
||||
this.emit( 'markAllRead' );
|
||||
}
|
||||
// Clear selection so handle doesn't change
|
||||
this.menu.selectItem();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue