mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
38 lines
792 B
JavaScript
38 lines
792 B
JavaScript
|
/*!
|
||
|
* VisualEditor user interface MediaDialog class.
|
||
|
*
|
||
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
||
|
* @license The MIT License (MIT); see LICENSE.txt
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Document dialog.
|
||
|
*
|
||
|
* @class
|
||
|
* @abstract
|
||
|
* @extends ve.ui.Dialog
|
||
|
*
|
||
|
* @constructor
|
||
|
* @param {ve.Surface} surface
|
||
|
*/
|
||
|
ve.ui.MediaDialog = function VeUiMediaDialog( surface ) {
|
||
|
// Parent constructor
|
||
|
ve.ui.Dialog.call( this, surface );
|
||
|
};
|
||
|
|
||
|
/* Inheritance */
|
||
|
|
||
|
ve.inheritClass( ve.ui.MediaDialog, ve.ui.Dialog );
|
||
|
|
||
|
/* Static Properties */
|
||
|
|
||
|
ve.ui.MediaDialog.static.titleMessage = 'visualeditor-dialog-media-title';
|
||
|
|
||
|
ve.ui.MediaDialog.static.icon = 'picture';
|
||
|
|
||
|
ve.ui.MediaDialog.static.nodeClasses = [ve.dm.MWImageNode];
|
||
|
|
||
|
/* Registration */
|
||
|
|
||
|
ve.ui.dialogFactory.register( 'media', ve.ui.MediaDialog );
|