Bugzilla – Attachment 192721 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: (follow-up) More tidying
1acba6c.patch (text/plain), 4.36 KB, created by
Jonathan Druart
on 2026-02-09 09:09:14 UTC
(
hide
)
Description:
Bug 41572: (follow-up) More tidying
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-02-09 09:09:14 UTC
Size:
4.36 KB
patch
obsolete
>From 1acba6c5be31a2de2ffab174ebf5d015e22872e4 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 15 Jan 2026 14:21:59 -0500 >Subject: [PATCH] Bug 41572: (follow-up) More tidying > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/members/pay.tt | 47 ++++++++++--------- > 1 file changed, 25 insertions(+), 22 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 8b5d33e16cc..bf6c583acbe 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >@@ -244,55 +244,58 @@ > }); > </script> > <script> >- function enableCheckboxActions(){ >+ function enableCheckboxActions() { > // Enable/disable controls if checkboxes are checked > var checkedBoxes = $("input.cb:checked"); > if ($(checkedBoxes).size()) { >- $("#payselected, #writeoff-selected").prop("disabled",false); >+ $("#payselected, #writeoff-selected").prop("disabled", false); > } else { >- $("#payselected, #writeoff-selected").prop("disabled",true); >+ $("#payselected, #writeoff-selected").prop("disabled", true); > } > } >- $(document).ready(function(){ >- 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'); >+ $(document).ready(function () { >+ 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){ >+ $("#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); > var answer = confirm(msg); >- if (!answer){ >- event.preventDefault(); >- } >+ if (!answer) { >+ event.preventDefault(); >+ } > }); >- $('#CheckAll').click(function(e){ >+ $("#CheckAll").click(function (e) { > e.preventDefault(); >- $(".cb").each(function(){ >- $(this).prop("checked", true ); >+ $(".cb").each(function () { >+ $(this).prop("checked", true); > }); > enableCheckboxActions(); > }); >- $('#CheckNone').click(function(e){ >+ $("#CheckNone").click(function (e) { > e.preventDefault(); >- $(".cb").each(function(){ >- $(this).prop("checked", false ); >+ $(".cb").each(function () { >+ $(this).prop("checked", false); > }); > enableCheckboxActions(); > }); >- $(".cb").change(function(){ >+ $(".cb").change(function () { > enableCheckboxActions(); > }); > enableCheckboxActions(); >- $(".add-note").on("click", function(e){ >+ $(".add-note").on("click", function (e) { > e.preventDefault(); > $(this).hide(); > var accountlines_id = $(this).data("accountlines_id"); >- $("#payment_note_" + accountlines_id ).show().find("input").focus(); >+ $("#payment_note_" + accountlines_id) >+ .show() >+ .find("input") >+ .focus(); > }); >- $(".cancel-note").on("click", function(e){ >+ $(".cancel-note").on("click", function (e) { > e.preventDefault(); >- this_td = $(this).closest('td.actions'); >+ this_td = $(this).closest("td.actions"); > this_td.find(".payment_note").hide().find("input").val(""); > this_td.find(".add-note").show(); > }); >-- >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
|
191521
|
191522
|
191523
|
191524
|
191525
|
191526
|
191527
|
191528
|
192714
|
192715
|
192716
|
192717
|
192718
|
192719
|
192720
| 192721 |
192722