mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Settings dialog: Focus redirect target input when redirect is enabled
Bug: T106616 Change-Id: Ia635552825194908503b8e8eef61f5fa2733a9da
This commit is contained in:
parent
f616edd310
commit
45325e0db7
|
@ -196,7 +196,9 @@ ve.ui.MWSettingsPage.prototype.onTableOfContentsFieldChange = function () {
|
|||
ve.ui.MWSettingsPage.prototype.onEnableRedirectChange = function ( value ) {
|
||||
this.redirectTargetInput.setDisabled( !value );
|
||||
this.enableStaticRedirectInput.setDisabled( !value );
|
||||
if ( !value ) {
|
||||
if ( value ) {
|
||||
this.redirectTargetInput.focus();
|
||||
} else {
|
||||
this.redirectTargetInput.setValue( '' );
|
||||
this.enableStaticRedirectInput.setSelected( false );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue