mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Merge "Set mw.libs.ve.EditingTabDialog.static.message instead of passing it to setup data"
This commit is contained in:
commit
d4f9a85f27
|
@ -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