mediawiki-extensions-Visual.../modules/ve-mw/ui/tools/ve.ui.MWDialogTool.js
James D. Forrester 3ce49146fe Update VE core submodule to master (5003907)
New changes:
7b68782 Update OOjs UI to v0.1.0-pre (3b434d5388)
ecb194d Remove border-radius prefixes
993220a Fix invalid use of border shorthand syntax
580473e build: Clean up repo split left overs in Gruntfile

Incidental change:
* The OOjs UI-provided 'autoAdd' configuration option for tools has been
  replaced with 'autoAddToCatchall' and 'autoAddToGroup'.

Change-Id: Ie7646ae867e5c6ca616c3f9045c79b886e78475c
2014-03-21 19:08:04 +00:00

30 lines
1.1 KiB
JavaScript

/*!
* VisualEditor MediaWiki UserInterface core dialog tool classes.
*
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* MediaWiki UserInterface command help tool.
*
* @class
* @extends ve.ui.DialogTool
* @constructor
* @param {OO.ui.Toolbar} toolbar
* @param {Object} [config] Configuration options
*/
ve.ui.MWCommandHelpDialogTool = function VeUiMWCommandHelpDialogTool( toolbar, config ) {
ve.ui.DialogTool.call( this, toolbar, config );
};
OO.inheritClass( ve.ui.MWCommandHelpDialogTool, ve.ui.DialogTool );
ve.ui.MWCommandHelpDialogTool.static.name = 'commandHelp';
ve.ui.MWCommandHelpDialogTool.static.group = 'utility';
ve.ui.MWCommandHelpDialogTool.static.icon = 'help';
ve.ui.MWCommandHelpDialogTool.static.title =
OO.ui.deferMsg( 'visualeditor-dialog-command-help-title' );
ve.ui.MWCommandHelpDialogTool.static.dialog = 'commandHelp';
ve.ui.MWCommandHelpDialogTool.static.autoAddToCatchall = false;
ve.ui.MWCommandHelpDialogTool.static.autoAddToGroup = false;
ve.ui.toolFactory.register( ve.ui.MWCommandHelpDialogTool );