Skip to content

Commit

Permalink
Fix #388
Browse files Browse the repository at this point in the history
  • Loading branch information
pavels committed Mar 30, 2016
1 parent 4a8e3a7 commit 71b6b14
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/src/main/webapp/WEB-INF/login_form.vm
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@


<script type="text/javascript">


function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
Expand Down Expand Up @@ -84,6 +85,14 @@
if (err === "true") {
$("#login_box_error").show();
}
$("#login_form input").keypress(function (e) {
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
__loginbutton();
return false;
} else {
return true;
}
});
});

</script>
Expand Down

0 comments on commit 71b6b14

Please sign in to comment.