2015-02-25 22:56:28 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MWCitationContextItem class.
|
|
|
|
*
|
|
|
|
* @copyright 2011-2015 VisualEditor Team and others; see http://ve.mit-license.org
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Context item for a MWCitation.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.MWReferenceContextItem
|
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {ve.ui.Context} context Context item is in
|
|
|
|
* @param {ve.dm.Model} model Model item is related to
|
|
|
|
* @param {Object} config Configuration options
|
|
|
|
*/
|
2015-08-18 12:54:51 +00:00
|
|
|
ve.ui.MWCitationContextItem = function VeUiMWCitationContextItem() {
|
2015-02-25 22:56:28 +00:00
|
|
|
// Parent constructor
|
2015-03-27 18:56:16 +00:00
|
|
|
ve.ui.MWCitationContextItem.super.apply( this, arguments );
|
2015-02-25 22:56:28 +00:00
|
|
|
|
|
|
|
// Initialization
|
|
|
|
this.$element.addClass( 've-ui-mwCitationContextItem' );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
OO.inheritClass( ve.ui.MWCitationContextItem, ve.ui.MWReferenceContextItem );
|
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Only display item for single-template transclusions of these templates.
|
|
|
|
*
|
|
|
|
* @property {string|string[]|null}
|
|
|
|
* @static
|
|
|
|
* @inheritable
|
|
|
|
*/
|
|
|
|
ve.ui.MWCitationContextItem.static.template = null;
|
|
|
|
|
|
|
|
/* Static Methods */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @static
|
|
|
|
* @localdoc Sharing implementation with ve.ui.MWCitationDialogTool
|
|
|
|
*/
|
|
|
|
ve.ui.MWCitationContextItem.static.isCompatibleWith =
|
|
|
|
ve.ui.MWCitationDialogTool.static.isCompatibleWith;
|