mediawiki-extensions-Echo/modules/ooui/mw.echo.ui.PlaceholderOptionWidget.js
Moriel Schottlender 5e8e18ee48 Show a default message if no notifications are available
Bug: T112251
Change-Id: Ia17c50a11ea0a49041795332ba79bd3cbda5b548
2015-09-17 16:25:54 -07:00

25 lines
796 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.PlaceholderOptionWidget = function MwEchoUiPlaceholderOptionWidget( config ) {
// Parent constructor
mw.echo.ui.PlaceholderOptionWidget.parent.call( this, $.extend( { data: null }, config ) );
this.$element.addClass( 'mw-echo-ui-notificationsWidget-loadingOption' );
};
OO.inheritClass( mw.echo.ui.PlaceholderOptionWidget, OO.ui.OptionWidget );
mw.echo.ui.PlaceholderOptionWidget.static.selectable = false;
mw.echo.ui.PlaceholderOptionWidget.static.highlightable = false;
mw.echo.ui.PlaceholderOptionWidget.static.pressable = false;
} )( mediaWiki, jQuery );