mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
34da7d56b8
New changes: 04a5947 Localisation updates from https://translatewiki.net. dd4691b Update OOjs to v1.1.5 2e1a0bb Context refactor Local changes: Add context item support for references, citations, templates and links Change-Id: I5d488ecbf9768dc63de6e545505dbfd5eb84cc61
49 lines
1.2 KiB
JavaScript
49 lines
1.2 KiB
JavaScript
/*!
|
|
* 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
|
|
*/
|
|
ve.ui.MWCitationContextItem = function VeMWCitationContextItem( context, model, config ) {
|
|
// Parent constructor
|
|
ve.ui.MWCitationContextItem.super.call( this, context, model, config );
|
|
|
|
// 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;
|