mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-18 19:55:55 +00:00
eb0eeb240a
Most of 'em already do. Fixed the remaining ones. Change-Id: I1a7ccb27dd66a33265dcaddaa7d34953d328ff87
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
/*!
|
|
* VisualEditor UserInterface MWTransclusionButtonTool class.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* UserInterface MediaWiki transclusion button tool.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.DialogButtonTool
|
|
* @constructor
|
|
* @param {ve.ui.Toolbar} toolbar
|
|
* @param {Object} [config] Config options
|
|
*/
|
|
ve.ui.MWTransclusionButtonTool = function VeUiMWTransclusionButtonTool( toolbar, config ) {
|
|
// Parent constructor
|
|
ve.ui.DialogButtonTool.call( this, toolbar, config );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
ve.inheritClass( ve.ui.MWTransclusionButtonTool, ve.ui.DialogButtonTool );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.ui.MWTransclusionButtonTool.static.name = 'mwTransclusion';
|
|
|
|
ve.ui.MWTransclusionButtonTool.static.icon = 'template';
|
|
|
|
ve.ui.MWTransclusionButtonTool.static.titleMessage = 'visualeditor-dialogbutton-transclusion-tooltip';
|
|
|
|
ve.ui.MWTransclusionButtonTool.static.dialog = 'mwTransclusion';
|
|
|
|
ve.ui.MWTransclusionButtonTool.static.modelClasses = [ ve.dm.MWTransclusionNode ];
|
|
|
|
/* Registration */
|
|
|
|
ve.ui.toolFactory.register( 'mwTransclusion', ve.ui.MWTransclusionButtonTool );
|