mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
6b7d62e4a4
Change-Id: I617e2a17cb6fbd11e486c2981e361ae931ac1870
40 lines
861 B
JavaScript
40 lines
861 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.modelClasses = [ ve.dm.MWInlineImageNode ];
|
|
|
|
/* Registration */
|
|
|
|
ve.ui.dialogFactory.register( 'media', ve.ui.MediaDialog );
|
|
|
|
ve.ui.viewRegistry.register( 'media', ve.ui.MediaDialog );
|