2014-04-08 19:15:15 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor UserInterface MWNoParametersResultWidget class.
|
|
|
|
*
|
2015-01-08 23:54:03 +00:00
|
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
2014-04-08 19:15:15 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates an ve.ui.MWNoParametersResultWidget object.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends OO.ui.OptionWidget
|
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
2014-11-22 01:40:00 +00:00
|
|
|
ve.ui.MWNoParametersResultWidget = function VeUiMWNoParametersResultWidget( config ) {
|
2014-04-08 19:15:15 +00:00
|
|
|
// Parent constructor
|
2014-11-22 01:40:00 +00:00
|
|
|
OO.ui.OptionWidget.call( this, config );
|
2014-04-08 19:15:15 +00:00
|
|
|
|
|
|
|
// Initialization
|
|
|
|
this.$element.addClass( 've-ui-mwNoParametersResultWidget' );
|
|
|
|
this.setLabel( this.buildLabel() );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
OO.inheritClass( ve.ui.MWNoParametersResultWidget, OO.ui.OptionWidget );
|
|
|
|
|
|
|
|
/* Methods */
|
|
|
|
|
|
|
|
/** */
|
|
|
|
ve.ui.MWNoParametersResultWidget.prototype.buildLabel = function () {
|
2015-04-09 23:47:15 +00:00
|
|
|
return $( '<div>' )
|
2014-04-08 19:15:15 +00:00
|
|
|
.addClass( 've-ui-mwNoParametersResultWidget-label' )
|
|
|
|
.text( ve.msg( 'visualeditor-parameter-search-no-unused' ) );
|
|
|
|
};
|