mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-23 10:22:05 +00:00
SpecialHelpMenuWidget: Use ButtonMenuSelectWidget
Bug: T178387 Change-Id: I521aa3749e1009e5bb028ee1359f732f21226689
This commit is contained in:
parent
4ff2b21819
commit
04100d4083
|
@ -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