Bugzilla – Attachment 191314 Details for
Bug 41564
Tidy kohaTable block - admin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41564: Tidy kohaTable - admin/branch_transfer_limits.tt
Bug-41564-Tidy-kohaTable---adminbranchtransferlimi.patch (text/plain), 1.79 KB, created by
Owen Leonard
on 2026-01-12 19:36:00 UTC
(
hide
)
Description:
Bug 41564: Tidy kohaTable - admin/branch_transfer_limits.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-12 19:36:00 UTC
Size:
1.79 KB
patch
obsolete
>From b3601f5ba89892c042c760c90db74a78d421fb7c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 10:53:41 +0100 >Subject: [PATCH] Bug 41564: Tidy kohaTable - admin/branch_transfer_limits.tt > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../en/modules/admin/branch_transfer_limits.tt | 16 ++++++++++------ > 1 file changed, 10 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt >index 00787368b8a..a8ecf568c0b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt >@@ -1,6 +1,7 @@ > [% USE raw %] > [% USE Koha %] > [% USE Asset %] >+[% USE To %] > [% USE Branches %] > [% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] >@@ -134,8 +135,12 @@ > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/admin-menu.js") | $raw %] > [% INCLUDE 'datatables.inc' %] >- <script> >- $(document).ready(function(){ >+ <script> >+ const codes_loop = [% To.json(codes_loop) | $raw %]; >+ </script> >+ >+ <script> >+ $(document).ready(function(){ > $("#CheckAll").on("click", function(e){ > e.preventDefault(); > $(".cb").each(function(){ >@@ -177,12 +182,11 @@ > }) > }); > >- >- [% FOREACH codes_loo IN codes_loop %] >- $("#[% codes_loo.code | html %]table").kohaTable({ >+ codes_loop.forEach((code) => { >+ $(`#${code.code}table`).kohaTable({ > paging: false, > }); >- [% END %] >+ }); > }); > </script> > [% END %] >-- >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 41564
:
191082
|
191083
|
191084
|
191085
|
191086
|
191087
|
191088
|
191089
|
191090
|
191091
|
191092
|
191093
|
191094
|
191095
|
191096
|
191097
|
191098
|
191099
|
191100
|
191310
|
191311
|
191312
|
191313
| 191314 |
191315
|
191316
|
191317
|
191318
|
191319
|
191320
|
191321
|
191322
|
191323
|
191324
|
191325
|
191326
|
191327
|
191328
|
191329