Bug 9483 - Use DataTables on batch patron modifications page
Replace the tablesorter plugin with the DataTables plugin on the batch patron modifications page. To test, submit multiple patron barcodes for batch modification (Tools -> Batch patron modification). Confirm that table sorting works correctly. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Elliott Davis <elliott@bywatersolions.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
7ff70354d2
commit
9b9580bab9
|
|
@ -3,19 +3,24 @@
|
|||
<title>Koha › Tools › Batch patron modification</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% INCLUDE 'calendar.inc' %]
|
||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/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 %]
|
||||
var patron_attributes_lib = new Array();
|
||||
var patron_attributes_values = new Array();
|
||||
$(document).ready(function() {
|
||||
[% IF borrowers %]
|
||||
$("#borrowerst").tablesorter({
|
||||
headers: { 0: { sorter: false}},
|
||||
widgets : ['zebra'],
|
||||
sortList: [[1,0]]
|
||||
});
|
||||
|
||||
$("#borrowerst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": 't',
|
||||
"aoColumnDefs": [
|
||||
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
|
||||
],
|
||||
"bPaginate": false
|
||||
}));
|
||||
$("#selectallbutton").click(function() {
|
||||
$("#borrowerst").find("input:checkbox").each(function() {
|
||||
$(this).attr("checked", true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue