Bugzilla – Attachment 191292 Details for
Bug 41563
Tidy kohaTable block - acqui
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41563: Tidy kohaTable - acqui/basketgroup.tt
Bug-41563-Tidy-kohaTable---acquibasketgrouptt.patch (text/plain), 2.30 KB, created by
Owen Leonard
on 2026-01-12 16:55:29 UTC
(
hide
)
Description:
Bug 41563: Tidy kohaTable - acqui/basketgroup.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-12 16:55:29 UTC
Size:
2.30 KB
patch
obsolete
>From ff35611cd6f525e53c08a8424ab928b5fb355eac Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Jan 2026 14:28:40 +0100 >Subject: [PATCH] Bug 41563: Tidy kohaTable - acqui/basketgroup.tt > >See bug 41324 comment 6 >1. Variable serialization > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/acqui/basketgroup.tt | 18 ++++++++++++------ > 1 file changed, 12 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt >index caa57b1f9ec..ceac0f41d86 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt >@@ -396,6 +396,11 @@ > > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] >+ <script> >+ let listclosed = [% listclosed ? 1 : 0 | html %]; >+ let grouping = [% grouping ? 1 : 0 | html %]; >+ </script> >+ > <script> > function submitForm(form) { > if (form.closedbg.checked == true) { >@@ -419,12 +424,13 @@ > } > > $(document).ready(function() { >- [% IF ( listclosed) %] >+ if (listclosed){ > $("#basket_groups a[href='#closed']").tab("show"); >- [% ELSE %] >+ } else { > $("#basket_groups a[href='#opened']").tab("show"); >- [% END %] >- [% UNLESS ( grouping ) %] >+ } >+ >+ if (!grouping){ > let dt_params = { > autoWidth: false, > pagingType: "full", >@@ -433,7 +439,7 @@ > $("#grouped").kohaTable(dt_params); > $("#basket_group_opened").kohaTable(dt_params); > $("#basket_group_closed").kohaTable(dt_params); >- [% ELSE %] >+ } else { > grouped = $("#grouped").kohaTable({ > dom: "t", > autoWidth: false, >@@ -448,7 +454,7 @@ > emptyTable: _("There are no ungrouped baskets"), > }, > }); >- [% END %] >+ } > > $("#basketgroupcolumns").on("click", ".addtogroup", function(){ > const row = $("#" + $(this).data("basketid") ); >-- >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 41563
:
191069
|
191070
|
191071
|
191072
|
191073
|
191074
|
191075
|
191076
|
191077
|
191078
|
191079
|
191080
|
191290
|
191291
| 191292 |
191293
|
191294
|
191295
|
191296
|
191297
|
191298
|
191299
|
191300
|
191301
|
191302
|
191303