Merge "Settings dialog: Focus redirect target input when redirect is enabled"

This commit is contained in:
jenkins-bot 2015-07-30 00:20:21 +00:00 committed by Gerrit Code Review
commit 2c7a42fff9

View file

@ -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 );
}