Added table filter to claims.tmpl
Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
This commit is contained in:
parent
0efaa6a41c
commit
159c586b3c
1 changed files with 5 additions and 12 deletions
|
@ -3,7 +3,7 @@
|
|||
<title>Koha › Serials › Claims</title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.uitablefilter.js"></script>
|
||||
<script type="text/JavaScript" language="JavaScript">
|
||||
//<![CDATA[
|
||||
$(document).ready(function() {
|
||||
|
@ -54,7 +54,9 @@
|
|||
return false;
|
||||
});
|
||||
|
||||
|
||||
$("#titlefilter").keyup(function() {
|
||||
$.uiTableFilter($("#claimst"), $("#titlefilter").val())
|
||||
});
|
||||
});
|
||||
|
||||
// Checks if the form can be sent (at least one checkbox must be checked)
|
||||
|
@ -76,14 +78,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
// Filter by title
|
||||
function filterByTitle() {
|
||||
var title = $("#titlefilter").val();
|
||||
$("table#claimst tbody tr").hide();
|
||||
$("table#claimst tbody tr:icontains(" + title + ")").show();
|
||||
|
||||
}
|
||||
|
||||
// Filter by date
|
||||
function filterByDate() {
|
||||
var beginDate = Date_from_syspref($("#begindate").val()).getTime();
|
||||
|
@ -188,7 +182,7 @@
|
|||
|
||||
<!-- TMPL_IF NAME="missingissues" -->
|
||||
<h3>Missing Issues</h3>
|
||||
<form action="claims.pl" onsubmit="filterByTitle(); return false;">
|
||||
<form action="claims.pl" onsubmit="return false;">
|
||||
<fieldset class="rows">
|
||||
<legend>Filters :</legend>
|
||||
|
||||
|
@ -208,7 +202,6 @@
|
|||
<li>
|
||||
<label for="titlefilter">Title : </label>
|
||||
<input id="titlefilter" type="text" />
|
||||
<input type="submit" value="OK" />
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
|
Loading…
Reference in a new issue