mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 17:50:39 +00:00
4bbaf77c2a
This is in preparation of adding more item models and widget types, and in preparation of switching the notification widget away from being a select widget. Change-Id: I518fb3d80f4f67d677c21ca5593638269acfa544
25 lines
782 B
JavaScript
25 lines
782 B
JavaScript
( function ( mw, $ ) {
|
|
/**
|
|
* Placeholder notification option widget for echo popup.
|
|
*
|
|
* @class
|
|
* @extends OO.ui.OptionWidget
|
|
*
|
|
* @constructor
|
|
* @param {Object} [config] Configuration object
|
|
*/
|
|
mw.echo.ui.PlaceholderItemWidget = function MwEchoUiPlaceholderItemWidget( config ) {
|
|
// Parent constructor
|
|
mw.echo.ui.PlaceholderItemWidget.parent.call( this, $.extend( { data: null }, config ) );
|
|
|
|
this.$element.addClass( 'mw-echo-ui-notificationsWidget-loadingOption' );
|
|
};
|
|
|
|
OO.inheritClass( mw.echo.ui.PlaceholderItemWidget, OO.ui.OptionWidget );
|
|
|
|
mw.echo.ui.PlaceholderItemWidget.static.selectable = false;
|
|
mw.echo.ui.PlaceholderItemWidget.static.highlightable = false;
|
|
mw.echo.ui.PlaceholderItemWidget.static.pressable = false;
|
|
|
|
} )( mediaWiki, jQuery );
|