mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
09c0611484
Because everything was broken. Follows-up I6374854eaa1 which split up mwcore into smaller parts but left MWDialogTool still as one file part of mwcore. Since the various ve.dm classes are now part of the other modules that depend on mwcore, the MWDialogTool classes were pointing at classes that don't exist yet (e.g. ".modelClasses = [ ve.dm.MWBlockImageNode ];"). Change-Id: Ic05b173d730a8a0f6539fdcd818aaf674d2a4019
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-transclusion-tooltip' );
|
|
ve.ui.MWTransclusionDialogTool.static.dialog = 'transclusion';
|
|
ve.ui.MWTransclusionDialogTool.static.modelClasses = [ ve.dm.MWTransclusionNode ];
|
|
ve.ui.toolFactory.register( ve.ui.MWTransclusionDialogTool );
|