diff options
| author | 2015-06-06 15:28:25 +0200 | |
|---|---|---|
| committer | 2015-06-06 15:28:25 +0200 | |
| commit | ae4d8658683575adc079f487f10c1af04f9e1d35 (patch) | |
| tree | 1377bcb2df48f286ba581112cd4254c8dc5c0f08 /app/install.php | |
| parent | ff9091e4a0373fc2b8331fe1672f784cec6cc666 (diff) | |
| parent | fcc94c733afe4e745ca4b12a47942ae0419c4786 (diff) | |
Merge pull request #874 from aledeg/855-keyboard-navigation
Remove the auto-focus on install
Diffstat (limited to 'app/install.php')
| -rw-r--r-- | app/install.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/install.php b/app/install.php index 3cdd59d11..15206b6e3 100644 --- a/app/install.php +++ b/app/install.php @@ -636,7 +636,7 @@ function printStep2() { toggles[i].addEventListener('mouseup', hide_password); } - function auth_type_change(focus) { + function auth_type_change() { var auth_value = document.getElementById('auth_type').value, password_input = document.getElementById('passwordPlain'), mail_input = document.getElementById('mail_login'); @@ -644,21 +644,15 @@ function printStep2() { if (auth_value === 'form') { password_input.required = true; mail_input.required = false; - if (focus) { - password_input.focus(); - } } else if (auth_value === 'persona') { password_input.required = false; mail_input.required = true; - if (focus) { - mail_input.focus(); - } } else { password_input.required = false; mail_input.required = false; } } - auth_type_change(false); + auth_type_change(); </script> <div class="form-group form-actions"> |
