mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Merge "Settings dialog: Focus redirect target input when redirect is enabled"
This commit is contained in:
commit
2c7a42fff9
|
@ -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