summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-18 22:02:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-18 22:02:23 +0000
commit4bfbabfdfa34eb27ac9d1593efa1fdf830269694 (patch)
tree6a118fb00f89777205bff91065ecb30c77732886 /public
parentff0a91d97da0412a6b1c1b10de3858b13c3b5201 (diff)
downloadredmine-4bfbabfdfa34eb27ac9d1593efa1fdf830269694.tar.gz
redmine-4bfbabfdfa34eb27ac9d1593efa1fdf830269694.zip
Removed submit_query_form function.
git-svn-id: http://svn.redmine.org/redmine/trunk@13617 e93f8b46-1217-0410-a6f0-8f06a7374b81
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');