mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-25 08:15:35 +00:00
5e8e18ee48
Bug: T112251 Change-Id: Ia17c50a11ea0a49041795332ba79bd3cbda5b548
25 lines
796 B
JavaScript
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 );
|