From 9d6d30acc11bba323e422c3115e6d685ce78cb97 Mon Sep 17 00:00:00 2001
From: xaver <xaver@ispconfig3>
Date: Mon, 19 Sep 2011 15:55:47 -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 df26afd..6c1b46d 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();
 			}
 		});
 

--
Gitblit v1.9.1