2013-06-27 23:17:59 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor UserInterface MWReferenceResultWidget class.
|
|
|
|
*
|
2015-01-08 23:54:03 +00:00
|
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
2013-06-27 23:17:59 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates an ve.ui.MWReferenceResultWidget object.
|
|
|
|
*
|
|
|
|
* @class
|
2013-10-09 20:09:59 +00:00
|
|
|
* @extends OO.ui.OptionWidget
|
2013-06-27 23:17:59 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
2013-09-25 10:21:09 +00:00
|
|
|
* @param {Object} [config] Configuration options
|
2013-06-27 23:17:59 +00:00
|
|
|
*/
|
2015-07-13 15:06:01 +00:00
|
|
|
ve.ui.MWReferenceResultWidget = function VeUiMWReferenceResultWidget() {
|
2013-06-27 23:17:59 +00:00
|
|
|
// Parent constructor
|
2015-07-13 15:06:01 +00:00
|
|
|
ve.ui.MWReferenceResultWidget.super.apply( this, arguments );
|
2013-06-27 23:17:59 +00:00
|
|
|
|
|
|
|
// Initialization
|
2013-11-01 19:45:59 +00:00
|
|
|
this.$element
|
2013-06-27 23:17:59 +00:00
|
|
|
.addClass( 've-ui-mwReferenceResultWidget' )
|
2015-07-13 15:06:01 +00:00
|
|
|
.append(
|
|
|
|
$( '<div>' ).addClass( 've-ui-mwReferenceResultWidget-shield' )
|
|
|
|
);
|
2013-06-27 23:17:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2013-10-09 20:09:59 +00:00
|
|
|
OO.inheritClass( ve.ui.MWReferenceResultWidget, OO.ui.OptionWidget );
|