Bugzilla – Attachment 191450 Details for
Bug 41582
Tidy kohaTable block - opac
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41582: Tidy kohaTable - opac-account.tt
Bug-41582-Tidy-kohaTable---opac-accounttt.patch (text/plain), 1.59 KB, created by
Owen Leonard
on 2026-01-14 19:37:29 UTC
(
hide
)
Description:
Bug 41582: Tidy kohaTable - opac-account.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-14 19:37:29 UTC
Size:
1.59 KB
patch
obsolete
>From 51af4486debde2f76a9176001ddde8cf7c31827d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 16:37:06 +0100 >Subject: [PATCH] Bug 41582: Tidy kohaTable - opac-account.tt > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../opac-tmpl/bootstrap/en/modules/opac-account.tt | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt >index 75dd67bac33..79efc3487ae 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt >@@ -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 } >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41582
:
191174
|
191175
|
191176
|
191177
|
191178
|
191179
|
191180
|
191181
|
191182
|
191183
|
191184
|
191185
|
191186
|
191187
|
191188
| 191450 |
191451
|
191452
|
191453
|
191454
|
191455
|
191456
|
191457
|
191458
|
191459
|
191460
|
191461
|
191462
|
191463
|
191464
|
191465
|
191569