mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Remove dead code when adding parameters"
This commit is contained in:
commit
ab8fba0f2a
|
@ -192,13 +192,6 @@ ve.ui.MWTemplateDialog.prototype.onAddParameter = function ( param ) {
|
|||
}
|
||||
this.bookletLayout.addPages( [ page ], this.transclusionModel.getIndex( param ) );
|
||||
if ( this.loaded ) {
|
||||
// Unconditionally focus parameter placeholders. Named parameters must be focused manually.
|
||||
if ( !this.preventReselection && !param.getName() ) {
|
||||
this.bookletLayout.focusPart( param.getId() );
|
||||
} else if ( !this.loaded ) {
|
||||
page.scrollElementIntoView();
|
||||
}
|
||||
|
||||
this.touch();
|
||||
|
||||
if ( page instanceof ve.ui.MWParameterPage ) {
|
||||
|
|
Loading…
Reference in a new issue