Commit 964c032f authored by xaver's avatar xaver
Browse files

new selector for submit + button height in autocompelte is read from input before

parent 81c31c61
...@@ -67,14 +67,15 @@ ...@@ -67,14 +67,15 @@
document.getElementsByTagName("head")[0].appendChild(style); document.getElementsByTagName("head")[0].appendChild(style);
} }
jQuery(document).ready(function() { jQuery(document).ready(function() {
loadInitContent(); loadInitContent();
}); });
//Use jQuery submit with kespress Enter in panel filterbar //Use jQuery submit with kespress Enter in panel filterbar
jQuery(document).bind("keypress", function(event) { jQuery(".panel .list input").live("keypress", function(event) {
if (event.which == '13' && $(".panel #Filter").length > 0) { if (event.which == '13' && $(this).parents("tr").find("#Filter")) {
$(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit(); $(this).parents("tr").find("#Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
} }
}); });
...@@ -148,6 +149,7 @@ ...@@ -148,6 +149,7 @@
this.button = $( "<button type='button'>&nbsp;</button>" ) this.button = $( "<button type='button'>&nbsp;</button>" )
.attr( "tabIndex", -1 ) .attr( "tabIndex", -1 )
.attr( "title", "Show All Items" ) .attr( "title", "Show All Items" )
.height($(input).outerHeight())
.insertAfter( input ) .insertAfter( input )
.button({ .button({
icons: { icons: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment