Lines 579-605
Link Here
|
579 |
var dTables = $("#loanTable, #holdst, #finestable"); |
579 |
var dTables = $("#loanTable, #holdst, #finestable"); |
580 |
dTables.each(function(){ |
580 |
dTables.each(function(){ |
581 |
var thIndex = $(this).find("th.psort").index(); |
581 |
var thIndex = $(this).find("th.psort").index(); |
582 |
$(this).dataTable($.extend(true, {}, dataTablesDefaults, { |
582 |
$(this).kohaTable({ |
583 |
"sorting" : [[ thIndex, 'asc' ]], |
583 |
sorting: [[thIndex, "asc"]], |
584 |
"dom": '<"top"<"table_entries"><"table_controls"f>>t<"clear">', |
584 |
dom: '<"top"<"table_entries"><"table_controls"f>>t<"clear">', |
585 |
"columnDefs": [ |
585 |
columnDefs: [ |
586 |
{ "targets": [ "nosort" ],"sortable": false,"searchable": false }, |
586 |
{ targets: ["nosort"], sortable: false, searchable: false }, |
587 |
{ "targets": [ "noshow" ], "visible": false, "searchable": false }, |
587 |
{ targets: ["noshow"], visible: false, searchable: false }, |
588 |
{ "type": "anti-the", "targets" : [ "anti-the" ] }, |
588 |
{ type: "anti-the", targets: ["anti-the"] }, |
589 |
{ "visible": false, "targets" : [ "hidden" ] }, |
589 |
{ visible: false, targets: ["hidden"] }, |
590 |
{ "className": 'dtr-control', "orderable": false, "targets": -1 } |
590 |
{ className: "dtr-control", orderable: false, targets: -1 }, |
591 |
], |
591 |
], |
592 |
"language": { |
592 |
language: { |
593 |
"search": "_INPUT_", |
593 |
search: "_INPUT_", |
594 |
"searchPlaceholder": _("Search") |
594 |
searchPlaceholder: _("Search"), |
595 |
}, |
595 |
}, |
596 |
"responsive": { |
596 |
responsive: { |
597 |
details: { |
597 |
details: { |
598 |
type: 'column', |
598 |
type: "column", |
599 |
target: -1 |
599 |
target: -1, |
600 |
} |
600 |
}, |
601 |
} |
601 |
}, |
602 |
})); |
602 |
}); |
603 |
}); |
603 |
}); |
604 |
|
604 |
|
605 |
$('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (event) { |
605 |
$('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (event) { |