diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 41660f7..50c8bf9 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -44,11 +44,11 @@
diff --git a/app/views/timelog/_date_range.html.erb b/app/views/timelog/_date_range.html.erb index 0c72012..b14ffd0 100644 --- a/app/views/timelog/_date_range.html.erb +++ b/app/views/timelog/_date_range.html.erb @@ -20,7 +20,7 @@ diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 1577da6..19104fd 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');