Bugzilla – Attachment 191136 Details for
Bug 41572
Tidy kohaTable block - members
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41572: Tidy kohaTable - members/pay.tt
8af4373.patch (text/plain), 2.86 KB, created by
Jonathan Druart
on 2026-01-09 14:50:02 UTC
(
hide
)
Description:
Bug 41572: Tidy kohaTable - members/pay.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:50:02 UTC
Size:
2.86 KB
patch
obsolete
>From 8af43738c546f39332c39d722e971be6e2c577f5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 14:11:23 +0100 >Subject: [PATCH] Bug 41572: Tidy kohaTable - members/pay.tt > >--- > .../prog/en/modules/members/pay.tt | 20 ++++++++++++++----- > 1 file changed, 15 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >index 7cf5df0e4b0..2bd70b30585 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >@@ -233,6 +233,17 @@ > [% INCLUDE 'str/members-menu.inc' %] > [% Asset.js("js/members-menu.js") | $raw %] > [% INCLUDE 'datatables.inc' %] >+ <script> >+ var table_settings = [% TablesSettings.GetTableSettings('members', 'pay', 'pay-fines-table', 'json') | $raw %]; >+ const payment_id = "[% payment_id | html %]"; >+ const change_given = "[% change_given | html %]"; >+ const total = "[% total | $Price %]"; >+ const patron_id = "[% patron.borrowernumber | html %]"; >+ addPrefs({ >+ FinePaymentAutoPopup: [% Koha.Preference('FinePaymentAutoPopup') ? 1 : 0 | html %], >+ }); >+ </script> >+ > <script> > function enableCheckboxActions(){ > // Enable/disable controls if checkboxes are checked >@@ -244,13 +255,13 @@ > } > } > $(document).ready(function(){ >- [% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %] >- window.open('/cgi-bin/koha/members/printfeercpt.pl?action=print&accountlines_id=[% payment_id | html %]&change_given=[% change_given | html %]&borrowernumber=[% patron.borrowernumber | html %]', '_blank'); >- [% END %] >+ if (payment_id && prefs.FinePaymentAutoPopup){ >+ window.open(`/cgi-bin/koha/members/printfeercpt.pl?action=print&accountlines_id=${payment_id}&change_given=${change_given}&borrowernumber=${patron_id}', '_blank'); >+ } > > $('#pay-fines-form').preventDoubleFormSubmit(); > $("#woall").click(function(event){ >- var msg = _("Are you sure you want to write off %s in outstanding charges? This cannot be undone!").format( "[% total | $Price %]" ); >+ var msg = _("Are you sure you want to write off %s in outstanding charges? This cannot be undone!").format(total); > var answer = confirm(msg); > if (!answer){ > event.preventDefault(); >@@ -287,7 +298,6 @@ > this_td.find(".add-note").show(); > }); > >- var table_settings = [% TablesSettings.GetTableSettings('members', 'pay', 'pay-fines-table', 'json') | $raw %]; > $("#finest").kohaTable( > { > paging: false, >-- >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 41572
:
191133
|
191134
|
191135
| 191136 |
191137
|
191138