Bug 41582: Tidy kohaTable - opac-account.tt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-01-08 16:37:06 +01:00 committed by Lucas Gass
parent 2da8719491
commit 4502e22172
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 8 additions and 5 deletions

View File

@ -83,6 +83,10 @@
[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %]
[% INCLUDE 'datatables.inc' %]
<script>
const ENABLE_OPAC_PAYMENTS = [% ENABLE_OPAC_PAYMENTS ? 1 : 0 | html %];
</script>
<script>
$( document ).ready(function() {
@ -90,11 +94,10 @@
var txtInactivefilter = _("Show all transactions");
var fines_table = $("#finestable").kohaTable({
[% IF ENABLE_OPAC_PAYMENTS %]
order: [[ 1, "desc" ]],
[% ELSE %]
order: [[ 0, "desc" ]],
[% END %]
...(ENABLE_OPAC_PAYMENTS
? {order: [[ 1, "desc" ]]}
: {order: [[ 0, "desc" ]]}
),
dom: '<"#filter_p">',
responsive: {
details: { "type": 'column',"target": -1 }