Set mw.libs.ve.EditingTabDialog.static.message instead of passing it to setup data

Change-Id: I2bfb79e258253e00c9f856bbbb3c4efae55a128c
This commit is contained in:
Alex Monk 2016-04-13 22:46:14 +01:00
parent 47cfc03d72
commit f3c5e2f410
3 changed files with 4 additions and 6 deletions

View file

@ -795,9 +795,7 @@
$( 'body' ).append( windowManager.$element );
editingTabDialog = new mw.libs.ve.EditingTabDialog();
windowManager.addWindows( [ editingTabDialog ] );
windowManager.openWindow( editingTabDialog, { message: mw.msg(
'visualeditor-editingtabdialog-body'
) } )
windowManager.openWindow( editingTabDialog )
.then( function ( opened ) { return opened; } )
.then( function ( closing ) { return closing; } )
.then( function ( data ) {

View file

@ -265,9 +265,7 @@ ve.init.mw.DesktopArticleTarget.prototype.loadSuccess = function ( response ) {
$( 'body' ).append( windowManager.$element );
this.editingTabDialog = new mw.libs.ve.EditingTabDialog();
windowManager.addWindows( [ this.editingTabDialog ] );
windowManager.openWindow( this.editingTabDialog, { message: mw.msg(
'visualeditor-editingtabdialog-body'
) } )
windowManager.openWindow( this.editingTabDialog )
.then( function ( opened ) { return opened; } )
.then( function ( closing ) { return closing; } )
.then( function ( data ) {

View file

@ -34,6 +34,8 @@ mw.libs.ve.EditingTabDialog.static.verbose = true;
mw.libs.ve.EditingTabDialog.static.title = mw.msg( 'visualeditor-editingtabdialog-title' );
mw.libs.ve.EditingTabDialog.static.message = mw.msg( 'visualeditor-editingtabdialog-body' );
mw.libs.ve.EditingTabDialog.static.actions = [
{