|
Lines 599-625
Link Here
|
| 599 |
var dTables = $("#loanTable, #holdst, #finestable"); |
599 |
var dTables = $("#loanTable, #holdst, #finestable"); |
| 600 |
dTables.each(function(){ |
600 |
dTables.each(function(){ |
| 601 |
var thIndex = $(this).find("th.psort").index(); |
601 |
var thIndex = $(this).find("th.psort").index(); |
| 602 |
$(this).dataTable($.extend(true, {}, dataTablesDefaults, { |
602 |
$(this).kohaTable({ |
| 603 |
"sorting" : [[ thIndex, 'asc' ]], |
603 |
sorting: [[thIndex, "asc"]], |
| 604 |
"dom": '<"top"<"table_entries"><"table_controls"f>>t<"clear">', |
604 |
dom: '<"top"<"table_entries"><"table_controls"f>>t<"clear">', |
| 605 |
"columnDefs": [ |
605 |
columnDefs: [ |
| 606 |
{ "targets": [ "nosort" ],"sortable": false,"searchable": false }, |
606 |
{ targets: ["nosort"], sortable: false, searchable: false }, |
| 607 |
{ "targets": [ "noshow" ], "visible": false, "searchable": false }, |
607 |
{ targets: ["noshow"], visible: false, searchable: false }, |
| 608 |
{ "type": "anti-the", "targets" : [ "anti-the" ] }, |
608 |
{ type: "anti-the", targets: ["anti-the"] }, |
| 609 |
{ "visible": false, "targets" : [ "hidden" ] }, |
609 |
{ visible: false, targets: ["hidden"] }, |
| 610 |
{ "className": 'dtr-control', "orderable": false, "targets": -1 } |
610 |
{ className: "dtr-control", orderable: false, targets: -1 }, |
| 611 |
], |
611 |
], |
| 612 |
"language": { |
612 |
language: { |
| 613 |
"search": "_INPUT_", |
613 |
search: "_INPUT_", |
| 614 |
"searchPlaceholder": _("Search") |
614 |
searchPlaceholder: _("Search"), |
| 615 |
}, |
615 |
}, |
| 616 |
"responsive": { |
616 |
responsive: { |
| 617 |
details: { |
617 |
details: { |
| 618 |
type: 'column', |
618 |
type: "column", |
| 619 |
target: -1 |
619 |
target: -1, |
| 620 |
} |
620 |
}, |
| 621 |
} |
621 |
}, |
| 622 |
})); |
622 |
}); |
| 623 |
}); |
623 |
}); |
| 624 |
|
624 |
|
| 625 |
$('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (event) { |
625 |
$('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (event) { |