Bug 9464 - Update DataTables configuration on patron statistics page
This page removes an unnecessary link to the old tablesorter plugin and changes the configuration details of the DataTables plugin so that an empty filter box doesn't appear as dot above and below the table (an empty <div> with a 1-pixel border). To test, open the patron statistics page for a patron who has entries to display. Sorting should work normally and no dots should be seen. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
88a62d9651
commit
79b998be19
1 changed files with 3 additions and 5 deletions
|
@ -12,14 +12,12 @@
|
||||||
[% INCLUDE 'datatables-strings.inc' %]
|
[% INCLUDE 'datatables-strings.inc' %]
|
||||||
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
|
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
|
||||||
[% INCLUDE 'calendar.inc' %]
|
[% INCLUDE 'calendar.inc' %]
|
||||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
|
$("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||||
'bPaginate': false,
|
"sDom": 't',
|
||||||
'bFilter': false,
|
"bPaginate": false
|
||||||
'bInfo': false,
|
}));
|
||||||
} ));
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue