MAPG-149 omit focusing/selecting input elements after processing
This commit is contained in:
parent
1be51b3e07
commit
64b6197bd4
@ -29,8 +29,6 @@
|
||||
loginFormError.style.display = 'block';
|
||||
loginFormError.innerHTML = errorText;
|
||||
|
||||
form.elements.email.select();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,12 @@
|
||||
profileFormError.style.display = 'block';
|
||||
profileFormError.innerHTML = errorText;
|
||||
|
||||
form.elements.password_new.select();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
document.getElementById('profileFormError').style.display = 'none';
|
||||
form.reset();
|
||||
form.elements.save.disabled = true;
|
||||
form.elements.password_new.focus();
|
||||
}, formData);
|
||||
};
|
||||
})();
|
||||
|
@ -35,14 +35,11 @@
|
||||
signupFormError.style.display = 'block';
|
||||
signupFormError.innerHTML = errorText;
|
||||
|
||||
form.elements.email.select();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
document.getElementById('signupFormError').style.display = 'none';
|
||||
form.reset();
|
||||
form.elements.email.focus();
|
||||
|
||||
MapGuesser.showModalWithContent('Sign up successful', 'Sign up was successful. Please check your email and click on the activation link to activate your account!');
|
||||
}, formData);
|
||||
|
Loading…
Reference in New Issue
Block a user