2016-02-03 21:03:41 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor UserInterface MWReferenceResultWidget class.
|
|
|
|
*
|
2017-04-20 16:08:44 +00:00
|
|
|
* @copyright 2011-2017 Cite VisualEditor Team and others; see AUTHORS.txt
|
2016-02-03 21:03:41 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates an ve.ui.MWReferenceResultWidget object.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends OO.ui.OptionWidget
|
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ui.MWReferenceResultWidget = function VeUiMWReferenceResultWidget() {
|
|
|
|
// Parent constructor
|
|
|
|
ve.ui.MWReferenceResultWidget.super.apply( this, arguments );
|
|
|
|
|
|
|
|
// Initialization
|
|
|
|
this.$element
|
|
|
|
.addClass( 've-ui-mwReferenceResultWidget' )
|
|
|
|
.append(
|
|
|
|
$( '<div>' ).addClass( 've-ui-mwReferenceResultWidget-shield' )
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
OO.inheritClass( ve.ui.MWReferenceResultWidget, OO.ui.OptionWidget );
|