Bug 9469 - Use Datatables in serials statistics wizard
Replace the tablesorter plugin with the DataTables plugin on the serials staitsics wizard report. To test, run the serials statistics wizard (Reports -> Serials). Confirm that table sorting works correctly. Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Works with DataTables as it used to work with tablesorter. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
d350f6235c
commit
3c0b1f6225
1 changed files with 10 additions and 5 deletions
|
@ -4,13 +4,18 @@
|
|||
<style type="text/css">
|
||||
.sql {display: none;}
|
||||
</style>
|
||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/JavaScript" language="JavaScript">
|
||||
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
|
||||
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
|
||||
[% INCLUDE 'datatables-strings.inc' %]
|
||||
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
[% IF (dateformat == 'metric') %]dt_add_type_uk_date();[% END %]
|
||||
$(document).ready(function() {
|
||||
$("#resulttable").tablesorter({
|
||||
widgets : ['zebra']
|
||||
});
|
||||
$("#resulttable").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": 't',
|
||||
"bPaginate": false
|
||||
}));
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue