More stuff

This commit is contained in:
Julien Lengrand-Lambert
2018-03-07 21:43:37 +01:00
parent 869654e6be
commit a3d37180d2

View File

@@ -155,12 +155,23 @@
</body>
<script>
closeModal("invalid-credentials");
$("take-me-in-btn").keypress(function(event) {
function enterStuff(event){
if (event.which == 13) {
event.preventDefault();
openRsvp();
}
}
$("email-input").keypress(function(event) {
enterStuff(event);
});
$("code-input").keypress(function(event) {
enterStuff(event);
});
$("take-me-in-btn").keypress(function(event) {
enterStuff();
});
</script>
</html>