We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b675c06 commit d3b56c2Copy full SHA for d3b56c2
1 file changed
static/facelift/js/ipr-search.js
@@ -14,8 +14,9 @@ $(document).ready(function() {
14
15
// make enter presses submit through the nearby button
16
$("form.ipr-search input,select").keyup(function (e) {
17
- if (e.which == 13) {
18
- $(this).next('button[type=submit]').click();
+ var submitButton = $(this).closest(".form-group").find('button[type=submit]');
+ if (e.which == 13 && submitButton.length > 0) {
19
+ submitButton.click();
20
return false;
21
} else {
22
return true;
0 commit comments