|
Lines 457-483
Link Here
|
| 457 |
var dTables = $("#loanTable, #holdst, #finestable"); |
457 |
var dTables = $("#loanTable, #holdst, #finestable"); |
| 458 |
dTables.each(function(){ |
458 |
dTables.each(function(){ |
| 459 |
var thIndex = $(this).find("th.psort").index(); |
459 |
var thIndex = $(this).find("th.psort").index(); |
| 460 |
$(this).dataTable($.extend(true, {}, dataTablesDefaults, { |
460 |
$(this).kohaTable({ |
| 461 |
"sorting" : [[ thIndex, 'asc' ]], |
461 |
sorting: [[thIndex, "asc"]], |
| 462 |
"dom": '<"top"<"table_entries"><"table_controls"f>>t<"clear">', |
462 |
dom: '<"top"<"table_entries"><"table_controls"f>>t<"clear">', |
| 463 |
"columnDefs": [ |
463 |
columnDefs: [ |
| 464 |
{ "targets": [ "nosort" ],"sortable": false,"searchable": false }, |
464 |
{ targets: ["nosort"], sortable: false, searchable: false }, |
| 465 |
{ "targets": [ "noshow" ], "visible": false, "searchable": false }, |
465 |
{ targets: ["noshow"], visible: false, searchable: false }, |
| 466 |
{ "type": "anti-the", "targets" : [ "anti-the" ] }, |
466 |
{ type: "anti-the", targets: ["anti-the"] }, |
| 467 |
{ "visible": false, "targets" : [ "hidden" ] }, |
467 |
{ visible: false, targets: ["hidden"] }, |
| 468 |
{ "className": 'dtr-control', "orderable": false, "targets": -1 } |
468 |
{ className: "dtr-control", orderable: false, targets: -1 }, |
| 469 |
], |
469 |
], |
| 470 |
"language": { |
470 |
language: { |
| 471 |
"search": "_INPUT_", |
471 |
search: "_INPUT_", |
| 472 |
"searchPlaceholder": _("Search") |
472 |
searchPlaceholder: _("Search"), |
| 473 |
}, |
473 |
}, |
| 474 |
"responsive": { |
474 |
responsive: { |
| 475 |
details: { |
475 |
details: { |
| 476 |
type: 'column', |
476 |
type: "column", |
| 477 |
target: -1 |
477 |
target: -1, |
| 478 |
} |
478 |
}, |
| 479 |
} |
479 |
}, |
| 480 |
})); |
480 |
}); |
| 481 |
}); |
481 |
}); |
| 482 |
|
482 |
|
| 483 |
$('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (event) { |
483 |
$('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (event) { |