Skip to content

Commit

Permalink
commento.js: focus on field based on login box type
Browse files Browse the repository at this point in the history
  • Loading branch information
adtac committed Aug 13, 2018
1 parent ddf345a commit 3339944
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/js/commento.js
Expand Up @@ -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();
}


Expand Down

0 comments on commit 3339944

Please sign in to comment.