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:
parent
2da8719491
commit
4502e22172
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Reference in New Issue