From 3339944cf211c8588d2bd85ea879291f876e477c Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Mon, 13 Aug 2018 10:53:15 +0530 Subject: [PATCH] commento.js: focus on field based on login box type --- frontend/js/commento.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index 16610c7..f868d32 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -1250,7 +1250,10 @@ append(loginBox, fieldContainer); } - $(ID_LOGIN_BOX_PASSWORD_INPUT).focus(); + if (loginBoxType == "signup") + $(ID_LOGIN_BOX_PASSWORD_NAME).focus(); + else + $(ID_LOGIN_BOX_PASSWORD_INPUT).focus(); }