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,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();
}