mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-26 07:15:32 +00:00
67a2613a12
Objective: Add a basic (empty) dialog for mediawiki references. Editor to follow. Changes: *.php * Added file links and messages ve.ui.MWMetaDialog.js * Moved initialize method to the top (for consistent ordering) ve.ui.MWReferenceDialog.js * New class, basic empty dialog for references ve.ui.LinkInspector.js, ve.ui.MWLinkInspector.js, ve.ui.MediaButtonTool.js * Cleanup documentation * Whitespace icons.ai, reference.png, reference.svg * Switch to reference icon being 3 books on a shelf ve.ui.MWReferenceButtonTool.js * New class, basic dialog button for references Change-Id: Ia4e30e9239fa1e3b28c0a1ef1ca0a6515a8103ef
39 lines
936 B
JavaScript
39 lines
936 B
JavaScript
/*!
|
|
* VisualEditor UserInterface MediaButtonTool class.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* Media button tool.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.DialogButtonTool
|
|
* @constructor
|
|
* @param {ve.ui.Toolbar} toolbar
|
|
* @param {Object} [config] Config options
|
|
*/
|
|
ve.ui.MediaButtonTool = function VeUiMediaButtonTool( toolbar, config ) {
|
|
// Parent constructor
|
|
ve.ui.DialogButtonTool.call( this, toolbar, config );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
ve.inheritClass( ve.ui.MediaButtonTool, ve.ui.DialogButtonTool );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.ui.MediaButtonTool.static.name = 'media';
|
|
|
|
ve.ui.MediaButtonTool.static.icon = 'picture';
|
|
|
|
ve.ui.MediaButtonTool.static.titleMessage = 'visualeditor-dialogbutton-media-tooltip';
|
|
|
|
ve.ui.MediaButtonTool.static.dialog = 'media';
|
|
|
|
/* Registration */
|
|
|
|
ve.ui.toolFactory.register( 'media', ve.ui.MediaButtonTool );
|