Skip to content

Commit 6823459

Browse files
author
xaver
committed
copied updated keypress submitpart to all other templates
1 parent 1ce0bbf commit 6823459

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/web/themes/default_combobox/templates/main.tpl.htm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@
7979
});
8080

8181
//Use jQuery submit with kespress Enter in panel filterbar
82-
jQuery(".panel .list input").live("keypress", function(event) {
83-
if (event.which == '13' && $(this).parents("tr").find("#Filter")) {
84-
$(this).parents("tr").find("#Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
82+
jQuery(document).bind("keypress", function(event) {
83+
if (event.which == '13' && $(".panel #Filter").length > 0) {
84+
$(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
8585
}
8686
});
8787

0 commit comments

Comments
 (0)