mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Follow naming convention for static methods"
This commit is contained in:
commit
d63cbf86f7
|
@ -35,10 +35,11 @@ ve.ui.MWConfirmationDialog.static.size = 'small';
|
|||
/**
|
||||
* Open a confirmation dialog
|
||||
*
|
||||
* @static
|
||||
* @param {string} prompt message key to show as dialog content
|
||||
* @param {Function} successCmd callback if continue action is chosen
|
||||
*/
|
||||
ve.ui.MWConfirmationDialog.confirm = function ( prompt, successCmd ) {
|
||||
ve.ui.MWConfirmationDialog.static.confirm = function ( prompt, successCmd ) {
|
||||
var windowManager = new OO.ui.WindowManager();
|
||||
$( document.body ).append( windowManager.$element );
|
||||
var dialog = new ve.ui.MWConfirmationDialog();
|
||||
|
|
|
@ -427,7 +427,7 @@ ve.ui.MWTransclusionDialog.prototype.getActionProcess = function ( action ) {
|
|||
case 'back':
|
||||
return new OO.ui.Process( function () {
|
||||
if ( willLoseProgress ) {
|
||||
ve.ui.MWConfirmationDialog.confirm(
|
||||
ve.ui.MWConfirmationDialog.static.confirm(
|
||||
'visualeditor-dialog-transclusion-back-confirmation-prompt',
|
||||
this.resetDialog.bind( this )
|
||||
);
|
||||
|
@ -443,7 +443,7 @@ ve.ui.MWTransclusionDialog.prototype.getActionProcess = function ( action ) {
|
|||
// close action
|
||||
if ( willLoseProgress ) {
|
||||
return new OO.ui.Process( function () {
|
||||
ve.ui.MWConfirmationDialog.confirm(
|
||||
ve.ui.MWConfirmationDialog.static.confirm(
|
||||
'visualeditor-dialog-transclusion-close-confirmation-prompt',
|
||||
this.close.bind( this ) );
|
||||
}, this );
|
||||
|
|
Loading…
Reference in a new issue