commento.js: focus on field based on login box type

This commit is contained in:
Adhityaa Chandrasekar 2018-08-13 10:53:15 +05:30
parent ddf345ae3c
commit 3339944cf2

View File

@ -1250,6 +1250,9 @@
append(loginBox, fieldContainer); append(loginBox, fieldContainer);
} }
if (loginBoxType == "signup")
$(ID_LOGIN_BOX_PASSWORD_NAME).focus();
else
$(ID_LOGIN_BOX_PASSWORD_INPUT).focus(); $(ID_LOGIN_BOX_PASSWORD_INPUT).focus();
} }