mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Set mw.libs.ve.EditingTabDialog.static.message instead of passing it to setup data
Change-Id: I2bfb79e258253e00c9f856bbbb3c4efae55a128c
This commit is contained in:
parent
47cfc03d72
commit
f3c5e2f410
|
@ -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 ) {
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
|
@ -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 = [
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue