mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
ac6f143838
Not removing the existing message for "Transclusion" for now in case that's needed later. Bug: 55434 Change-Id: I0ee722e821051970b4a445b5a7a0e93f144f3185
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
/*!
|
|
* VisualEditor MediaWiki UserInterface transclusion tool classes.
|
|
*
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* MediaWiki UserInterface transclusion tool.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.DialogTool
|
|
* @constructor
|
|
* @param {OO.ui.ToolGroup} toolGroup
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWTransclusionDialogTool = function VeUiMWTransclusionDialogTool( toolGroup, config ) {
|
|
ve.ui.DialogTool.call( this, toolGroup, config );
|
|
};
|
|
OO.inheritClass( ve.ui.MWTransclusionDialogTool, ve.ui.DialogTool );
|
|
ve.ui.MWTransclusionDialogTool.static.name = 'transclusion';
|
|
ve.ui.MWTransclusionDialogTool.static.group = 'object';
|
|
ve.ui.MWTransclusionDialogTool.static.icon = 'template';
|
|
ve.ui.MWTransclusionDialogTool.static.title =
|
|
OO.ui.deferMsg( 'visualeditor-dialogbutton-template-tooltip' );
|
|
ve.ui.MWTransclusionDialogTool.static.dialog = 'transclusion';
|
|
ve.ui.MWTransclusionDialogTool.static.modelClasses = [ ve.dm.MWTransclusionNode ];
|
|
ve.ui.toolFactory.register( ve.ui.MWTransclusionDialogTool );
|