mediawiki-extensions-Visual.../modules/ve/ui/dialogs/ve.ui.MediaDialog.js
Inez Korczyński 6b7d62e4a4 Rename MWImageNode to MWInlineImageNode (get ready for adding MWBlockImageNode soon)
Change-Id: I617e2a17cb6fbd11e486c2981e361ae931ac1870
2013-04-24 16:49:07 -07:00

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 );