Skip to content

Commit 964c032

Browse files
author
xaver
committed
new selector for submit + button height in autocompelte is read from input before
1 parent 81c31c6 commit 964c032

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,15 @@
6767
document.getElementsByTagName("head")[0].appendChild(style);
6868
}
6969

70+
7071
jQuery(document).ready(function() {
7172
loadInitContent();
7273
});
7374

7475
//Use jQuery submit with kespress Enter in panel filterbar
75-
jQuery(document).bind("keypress", function(event) {
76-
if (event.which == '13' && $(".panel #Filter").length > 0) {
77-
$(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
76+
jQuery(".panel .list input").live("keypress", function(event) {
77+
if (event.which == '13' && $(this).parents("tr").find("#Filter")) {
78+
$(this).parents("tr").find("#Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
7879
}
7980
});
8081

@@ -148,6 +149,7 @@
148149
this.button = $( "<button type='button'>&nbsp;</button>" )
149150
.attr( "tabIndex", -1 )
150151
.attr( "title", "Show All Items" )
152+
.height($(input).outerHeight())
151153
.insertAfter( input )
152154
.button({
153155
icons: {

0 commit comments

Comments
 (0)