Bugzilla – Attachment 191174 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
25dece4.patch (text/plain), 1.54 KB, created by
Jonathan Druart
on 2026-01-09 14:54:44 UTC
(
hide
)
Description:
Bug 41582: Tidy kohaTable - opac-account.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:54:44 UTC
Size:
1.54 KB
patch
obsolete
>From 25dece4fc04e00659d23a89cc9f0c957b2df363f 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 > >--- > .../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.43.0 >
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