Merge pull request #874 from aledeg/855-keyboard-navigation

Remove the auto-focus on install
pull/886/head
Alexandre Alapetite 9 years ago
commit ae4d865868
  1. 10
      app/install.php

@ -636,7 +636,7 @@ function printStep2() {
toggles[i].addEventListener('mouseup', hide_password); toggles[i].addEventListener('mouseup', hide_password);
} }
function auth_type_change(focus) { function auth_type_change() {
var auth_value = document.getElementById('auth_type').value, var auth_value = document.getElementById('auth_type').value,
password_input = document.getElementById('passwordPlain'), password_input = document.getElementById('passwordPlain'),
mail_input = document.getElementById('mail_login'); mail_input = document.getElementById('mail_login');
@ -644,21 +644,15 @@ function printStep2() {
if (auth_value === 'form') { if (auth_value === 'form') {
password_input.required = true; password_input.required = true;
mail_input.required = false; mail_input.required = false;
if (focus) {
password_input.focus();
}
} else if (auth_value === 'persona') { } else if (auth_value === 'persona') {
password_input.required = false; password_input.required = false;
mail_input.required = true; mail_input.required = true;
if (focus) {
mail_input.focus();
}
} else { } else {
password_input.required = false; password_input.required = false;
mail_input.required = false; mail_input.required = false;
} }
} }
auth_type_change(false); auth_type_change();
</script> </script>
<div class="form-group form-actions"> <div class="form-group form-actions">

Loading…
Cancel
Save