Commit 40cf9835 authored by tbrehm's avatar tbrehm

Fixed bug that caused the wrong list to be loaded when the return key was...

Fixed bug that caused the wrong list to be loaded when the return key was pressed in a search text field of a list.
parent add36e9a
......@@ -68,7 +68,14 @@
jQuery(document).ready(function() {
loadInitContent();
});
jQuery(document).bind("change", function(event) {
if ($(".panel #Filter").length > 0 && event.target.localName == 'select') {
$(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
}
});
//Use jQuery submit with kespress Enter in panel filterbar
jQuery(document).bind("keypress", function(event) {
if (event.which == '13' && $(".panel #Filter").length > 0) {
......@@ -117,7 +124,7 @@
<div id="col3_content" class="clearfix">
<a id="content" name="content"></a>
<!-- skiplink anchor: Content -->
<form method="post" action="" id="pageForm" name="pageForm" enctype="multipart/form-data" class="uniForm">
<form method="post" action="" id="pageForm" name="pageForm" enctype="multipart/form-data" class="uniForm" onSubmit="return false;">
<div id="pageContent"><!-- AJAX CONTENT --></div>
</form>
</div>
......
......@@ -70,6 +70,12 @@
loadInitContent();
});
jQuery(document).bind("change", function(event) {
if ($(".panel #Filter").length > 0 && event.target.localName == 'select') {
$(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
}
});
//Use jQuery submit with kespress Enter in panel filterbar
jQuery(document).bind("keypress", function(event) {
if (event.which == '13' && $(".panel #Filter").length > 0) {
......
......@@ -72,10 +72,16 @@
loadInitContent();
});
jQuery(document).bind("change", function(event) {
if ($(".panel #Filter").length > 0 && event.target.localName == 'select') {
$(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
}
});
//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();
}
});
......
......@@ -70,6 +70,12 @@
loadInitContent();
});
jQuery(document).bind("change", function(event) {
if ($(".panel #Filter").length > 0 && event.target.localName == 'select') {
$(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
}
});
//Use jQuery submit with kespress Enter in panel filterbar
jQuery(document).bind("keypress", function(event) {
if (event.which == '13' && $(".panel #Filter").length > 0) {
......
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