Lines 2-16
Link Here
|
2 |
<title>Koha › Circulation › Hold ratios</title> |
2 |
<title>Koha › Circulation › Hold ratios</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'calendar.inc' %] |
4 |
[% INCLUDE 'calendar.inc' %] |
5 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
5 |
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" /> |
|
|
6 |
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
7 |
[% INCLUDE 'datatables-strings.inc' %] |
8 |
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script> |
6 |
<script type="text/javascript"> |
9 |
<script type="text/javascript"> |
7 |
//<![CDATA[ |
10 |
//<![CDATA[ |
8 |
$.tablesorter.addParser({ |
|
|
9 |
id: 'articles', |
10 |
is: function(s) {return false; }, |
11 |
format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, |
12 |
type: 'text' |
13 |
}); |
14 |
$(document).ready(function() { |
11 |
$(document).ready(function() { |
15 |
$("th a").hide(); |
12 |
$("th a").hide(); |
16 |
$(".ratiolimit").click(function () { |
13 |
$(".ratiolimit").click(function () { |
Lines 20-30
$.tablesorter.addParser({
Link Here
|
20 |
function () { $(this).toggleClass("ulined") }, |
17 |
function () { $(this).toggleClass("ulined") }, |
21 |
function () { $(this).toggleClass("ulined") } |
18 |
function () { $(this).toggleClass("ulined") } |
22 |
); |
19 |
); |
23 |
$.tablesorter.defaults.widgets = ['zebra']; |
20 |
$("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, { |
24 |
$("#holdst:has(tbody tr)").tablesorter({ // only add sort if the table has a body and rows |
21 |
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], |
25 |
sortList: [[0,1]], |
22 |
"iDisplayLength": 20, |
26 |
headers: { 1: { sorter: 'articles' }} |
23 |
"sPaginationType": "four_button" |
27 |
}); |
24 |
})); |
28 |
}); |
25 |
}); |
29 |
//]]> |
26 |
//]]> |
30 |
</script> |
27 |
</script> |
31 |
- |
|
|