From e085f38f746d461560f822d82c5a6c5ecbb01957 Mon Sep 17 00:00:00 2001 From: Abhishek Balam Date: Wed, 30 Sep 2020 03:14:07 +0530 Subject: [PATCH] fix: autofocus on first field in login/forgot/signup form --- frappe/templates/includes/login/login.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frappe/templates/includes/login/login.js b/frappe/templates/includes/login/login.js index dd332b408e..f57755c60c 100644 --- a/frappe/templates/includes/login/login.js +++ b/frappe/templates/includes/login/login.js @@ -106,21 +106,25 @@ login.reset_sections = function(hide) { login.login = function() { login.reset_sections(); $(".for-login").toggle(true); + $("#login_email").focus(); } login.steptwo = function() { login.reset_sections(); $(".for-login").toggle(true); + $("#login_email").focus(); } login.forgot = function() { login.reset_sections(); $(".for-forgot").toggle(true); + $("#forgot_email").focus(); } login.signup = function() { login.reset_sections(); $(".for-signup").toggle(true); + $("#signup_fullname").focus(); }