From 964c032fdc6e4c105ceaa58598262ed3ce458443 Mon Sep 17 00:00:00 2001
From: xaver <xaver@ispconfig3>
Date: Wed, 14 Sep 2011 12:29:55 -0400
Subject: [PATCH] new selector for submit + button height in autocompelte is read from input before
---
interface/web/themes/default_combobox/templates/main.tpl.htm | 8 +++++---
1 files changed, 5 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 c0eb34c..39800ac 100644
--- a/interface/web/themes/default_combobox/templates/main.tpl.htm
+++ b/interface/web/themes/default_combobox/templates/main.tpl.htm
@@ -67,14 +67,15 @@
document.getElementsByTagName("head")[0].appendChild(style);
}
+
jQuery(document).ready(function() {
loadInitContent();
});
//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();
}
});
@@ -148,6 +149,7 @@
this.button = $( "<button type='button'> </button>" )
.attr( "tabIndex", -1 )
.attr( "title", "Show All Items" )
+ .height($(input).outerHeight())
.insertAfter( input )
.button({
icons: {
--
Gitblit v1.9.1