mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
ve.ui.MWTransclusionDialog: Remove unneeded code re-setting insert label
This sets the label to be the same as the default value inherited from ve.ui.MWTemplateDialog. Looks like it's no longer needed since change Ia8fb88d3501ffa2c26add4419da5463a926f45d1 (2014). Change-Id: I1dd40d2428c0221dfdc79e5f34e411b127624eb6
This commit is contained in:
parent
fc126c1260
commit
a659c4eaea
|
@ -159,7 +159,7 @@ ve.ui.MWTransclusionDialog.prototype.onBookletLayoutSet = function ( page ) {
|
|||
* @inheritdoc
|
||||
*/
|
||||
ve.ui.MWTransclusionDialog.prototype.onReplacePart = function ( removed, added ) {
|
||||
var single, label;
|
||||
var single;
|
||||
|
||||
ve.ui.MWTransclusionDialog.super.prototype.onReplacePart.call( this, removed, added );
|
||||
|
||||
|
@ -169,13 +169,7 @@ ve.ui.MWTransclusionDialog.prototype.onReplacePart = function ( removed, added )
|
|||
}
|
||||
|
||||
single = this.isSingleTemplateTransclusion();
|
||||
label = ve.msg( 'visualeditor-dialog-action-insert' );
|
||||
|
||||
this.actions
|
||||
.setAbilities( { mode: single } )
|
||||
.forEach( { actions: 'insert' }, function ( action ) {
|
||||
action.setLabel( label );
|
||||
} );
|
||||
this.actions.setAbilities( { mode: single } );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue