2016-02-03 21:03:41 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MWCitationContextItem class.
|
|
|
|
*
|
2017-04-20 16:08:44 +00:00
|
|
|
* @copyright 2011-2017 Cite VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
2016-02-03 21:03:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
ve.ui.MWCitationContextItem = function VeUiMWCitationContextItem() {
|
|
|
|
// Parent constructor
|
|
|
|
ve.ui.MWCitationContextItem.super.apply( this, arguments );
|
|
|
|
|
|
|
|
// 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;
|