mediawiki-extensions-Visual.../modules/ve-mw/ui/dialogs/ve.ui.MWRequiredParamBlankConfirmDialog.js
Bartosz Dziewoński 42ebd10090 Correct some doc comments' syntax
I ran Closure Compiler over the codebase just to see what would happen,
and it printed some useful warnings.

Change-Id: I56d40b11e6d1dd7ce68a5e59da511f66e928647f
2018-09-26 14:49:52 +02:00

48 lines
1.3 KiB
JavaScript

/*!
* VisualEditor user interface MWRequiredParamBlankConfirmDialog class.
*
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* Dialog for letting the user confirm that they really want to insert a template/citation with blank required parameters.
*
* @class
* @extends OO.ui.MessageDialog
*
* @constructor
* @param {Object} [config] Configuration options
*/
ve.ui.MWRequiredParamBlankConfirmDialog = function VeUiMWRequiredParamBlankConfirmDialog( config ) {
// Parent constructor
ve.ui.MWRequiredParamBlankConfirmDialog.super.call( this, config );
};
/* Inheritance */
OO.inheritClass( ve.ui.MWRequiredParamBlankConfirmDialog, OO.ui.MessageDialog );
/* Static Properties */
ve.ui.MWRequiredParamBlankConfirmDialog.static.name = 'requiredparamblankconfirm';
ve.ui.MWRequiredParamBlankConfirmDialog.static.size = 'medium';
ve.ui.MWRequiredParamBlankConfirmDialog.static.actions = [
{
action: 'ok',
label: OO.ui.deferMsg( 'visualeditor-dialog-transclusion-required-parameter-dialog-ok' ),
flags: [ 'primary', 'progressive' ]
},
{
action: 'cancel',
label: OO.ui.deferMsg( 'visualeditor-dialog-transclusion-required-parameter-dialog-cancel' ),
flags: [ 'safe', 'back' ]
}
];
/* Registration */
ve.ui.windowFactory.register( ve.ui.MWRequiredParamBlankConfirmDialog );