From 64b6197bd4f602a730a2959a0f577e8ec96fe46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Thu, 18 Jun 2020 16:28:01 +0200 Subject: [PATCH] MAPG-149 omit focusing/selecting input elements after processing --- public/static/js/login.js | 2 -- public/static/js/profile.js | 3 --- public/static/js/signup.js | 3 --- 3 files changed, 8 deletions(-) diff --git a/public/static/js/login.js b/public/static/js/login.js index 22f306c..0044488 100644 --- a/public/static/js/login.js +++ b/public/static/js/login.js @@ -29,8 +29,6 @@ loginFormError.style.display = 'block'; loginFormError.innerHTML = errorText; - form.elements.email.select(); - return; } diff --git a/public/static/js/profile.js b/public/static/js/profile.js index 744f99b..aff3137 100644 --- a/public/static/js/profile.js +++ b/public/static/js/profile.js @@ -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); }; })(); diff --git a/public/static/js/signup.js b/public/static/js/signup.js index 91836f6..d4674f2 100644 --- a/public/static/js/signup.js +++ b/public/static/js/signup.js @@ -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);