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