Skip to content

Commit ea470fb

Browse files
committed
Fixed double form submission
1 parent 60b7918 commit ea470fb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/webapp/_res/inc/header.jsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
5757
$("form input, form select").keydown(function (event) {
5858
if (event.keyCode == 13) {
59+
event.preventDefault();
5960
$(this).closest("form").submit();
6061
}
6162
});

src/main/webapp/admin/secure_shell.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@
383383
$('#match_btn').text("Start");
384384
clearInterval(matchFunction)
385385
}
386-
$('#match_btn').removeAttr('disabled');
386+
$('.btn').removeAttr('disabled');
387387
}
388388
389389

0 commit comments

Comments
 (0)