apply filter when enter is pressed in filter box
This commit is contained in:
parent
e123469762
commit
d8f9d405cd
|
@ -398,7 +398,7 @@ class lamList {
|
|||
$value = " value=\"" . $_POST["filter" . strtolower($this->attrArray[$k])] . "\"";
|
||||
}
|
||||
echo "<td>";
|
||||
echo ("<input type=\"text\" size=15 name=\"filter" . strtolower ($this->attrArray[$k]) ."\"" . $value . ">");
|
||||
echo ("<input type=\"text\" size=15 name=\"filter" . strtolower ($this->attrArray[$k]) ."\"" . $value . " onkeypress=\"SubmitForm('apply_filter', event)\">");
|
||||
echo "</td>\n";
|
||||
}
|
||||
echo "</tr>\n";
|
||||
|
|
|
@ -56,3 +56,10 @@ function listOUchanged(type) {
|
|||
selectOU = document.getElementsByName('suffix')[0];
|
||||
location.href='list.php?type=' + type + '&suffix=' + selectOU.options[selectOU.selectedIndex].value;
|
||||
}
|
||||
|
||||
function SubmitForm(id, e) {
|
||||
if (e.keyCode == 13) {
|
||||
document.getElementsByName(id)[0].click();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue