From 29922a384206926e5985aaec4c72139f8264a8ca Mon Sep 17 00:00:00 2001 From: xaver Date: Mon, 19 Sep 2011 19:35:14 +0000 Subject: [PATCH] copied updated keypress submitpart to all other templates --- .../web/themes/default_combobox/templates/main.tpl.htm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/web/themes/default_combobox/templates/main.tpl.htm b/interface/web/themes/default_combobox/templates/main.tpl.htm index 6c1b46d07f..df26afd64e 100644 --- a/interface/web/themes/default_combobox/templates/main.tpl.htm +++ b/interface/web/themes/default_combobox/templates/main.tpl.htm @@ -79,9 +79,9 @@ }); //Use jQuery submit with kespress Enter in panel filterbar - jQuery(document).bind("keypress", function(event) { - if (event.which == '13' && $(".panel #Filter").length > 0) { - $(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit(); + jQuery(".panel .list input").live("keypress", function(event) { + if (event.which == '13' && $(this).parents("tr").find("#Filter")) { + $(this).parents("tr").find("#Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit(); } }); -- GitLab