From 45325e0db788029320777237271d2aa8b7361fe6 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Wed, 29 Jul 2015 23:58:43 +0100 Subject: [PATCH] Settings dialog: Focus redirect target input when redirect is enabled Bug: T106616 Change-Id: Ia635552825194908503b8e8eef61f5fa2733a9da --- modules/ve-mw/ui/pages/ve.ui.MWSettingsPage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ve-mw/ui/pages/ve.ui.MWSettingsPage.js b/modules/ve-mw/ui/pages/ve.ui.MWSettingsPage.js index 371a6950ec..3ac4f37e21 100644 --- a/modules/ve-mw/ui/pages/ve.ui.MWSettingsPage.js +++ b/modules/ve-mw/ui/pages/ve.ui.MWSettingsPage.js @@ -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 ); }