fixed enter button when logging/registering
This commit is contained in:
parent
888c7a5019
commit
fa48f58cf1
@ -73,4 +73,13 @@ function logout()
|
||||
document.getElementById("login_buttons").style.display = "inline";
|
||||
document.getElementById("logout_button").style.display = "none";
|
||||
document.getElementById("login_indicator").style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener("keypress", function(event)
|
||||
{
|
||||
if (event.key == "Enter" && document.getElementById("login_pane").style.display == "visible")
|
||||
{
|
||||
event.preventDefault();
|
||||
document.getElementById("sub_btn").click();
|
||||
}
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user