From 68234593af02999bdf841b5d9c269534850013fa Mon Sep 17 00:00:00 2001 From: xaver Date: Mon, 19 Sep 2011 19:31:33 +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 df26afd64e..6c1b46d07f 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(".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(); + jQuery(document).bind("keypress", function(event) { + if (event.which == '13' && $(".panel #Filter").length > 0) { + $(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit(); } }); -- GitLab