mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Merge "Set focus to first input field on all panels"
This commit is contained in:
commit
9bca2b9d36
|
@ -1512,6 +1512,7 @@ Dialog.prototype.switchPanels = function ( panel ) {
|
||||||
this.addParamPanel.$element.hide();
|
this.addParamPanel.$element.hide();
|
||||||
this.editParamPanel.$element.show();
|
this.editParamPanel.$element.show();
|
||||||
this.editMapsPanel.$element.hide();
|
this.editMapsPanel.$element.hide();
|
||||||
|
this.editParamPanel.focus();
|
||||||
break;
|
break;
|
||||||
case 'addParam':
|
case 'addParam':
|
||||||
this.actions.setMode( 'add' );
|
this.actions.setMode( 'add' );
|
||||||
|
@ -1522,6 +1523,7 @@ Dialog.prototype.switchPanels = function ( panel ) {
|
||||||
this.languagePanel.$element.hide();
|
this.languagePanel.$element.hide();
|
||||||
this.addParamPanel.$element.show();
|
this.addParamPanel.$element.show();
|
||||||
this.editMapsPanel.$element.hide();
|
this.editMapsPanel.$element.hide();
|
||||||
|
this.newParamInput.focus();
|
||||||
break;
|
break;
|
||||||
case 'editMaps':
|
case 'editMaps':
|
||||||
this.actions.setMode( 'maps' );
|
this.actions.setMode( 'maps' );
|
||||||
|
@ -1532,7 +1534,7 @@ Dialog.prototype.switchPanels = function ( panel ) {
|
||||||
this.languagePanel.$element.hide();
|
this.languagePanel.$element.hide();
|
||||||
this.addParamPanel.$element.hide();
|
this.addParamPanel.$element.hide();
|
||||||
this.editMapsPanel.$element.show();
|
this.editMapsPanel.$element.show();
|
||||||
this.templateMapsInput.adjustSize( true );
|
this.templateMapsInput.adjustSize( true ).focus();
|
||||||
break;
|
break;
|
||||||
case 'language':
|
case 'language':
|
||||||
this.actions.setMode( 'language' );
|
this.actions.setMode( 'language' );
|
||||||
|
|
Loading…
Reference in a new issue