summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 1577da6b8..19104fdc2 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -88,7 +88,7 @@ function initFilters() {
toggleMultiSelect($(this).siblings('select'));
});
$('#filters-table').on('keypress', 'input[type=text]', function(e) {
- if (e.keyCode == 13) submit_query_form("query_form");
+ if (e.keyCode == 13) $(this).closest('form').submit();
});
}
@@ -287,10 +287,6 @@ function toggleMultiSelect(el) {
}
}
-function submit_query_form(id) {
- $('#'+id).submit();
-}
-
function showTab(name, url) {
$('div#content .tab-content').hide();
$('div.tabs a').removeClass('selected');