From 29922a384206926e5985aaec4c72139f8264a8ca Mon Sep 17 00:00:00 2001
From: xaver <xaver@ispconfig3>
Date: Mon, 19 Sep 2011 15:35:14 -0400
Subject: [PATCH] copied updated keypress submitpart to all other templates
---
interface/web/themes/default_combobox/templates/main.tpl.htm | 6 +++---
1 files 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 6c1b46d..df26afd 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();
}
});
--
Gitblit v1.9.1