Bugzilla – Attachment 191072 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/duplicate_orders.tt
cacf61a.patch (text/plain), 2.36 KB, created by
Jonathan Druart
on 2026-01-09 14:40:03 UTC
(
hide
)
Description:
Bug 41563: Tidy kohaTable - acqui/duplicate_orders.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:40:03 UTC
Size:
2.36 KB
patch
obsolete
>From cacf61a086d788121892330aedc86ef09cad1f63 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 6 Jan 2026 16:24:38 +0100 >Subject: [PATCH] Bug 41563: Tidy kohaTable - acqui/duplicate_orders.tt > >See bug 41324 comment 6 >1. Variable serialization >--- > .../prog/en/modules/acqui/duplicate_orders.tt | 15 ++++++++++----- > 1 file changed, 10 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt >index c660a925bb2..9bdf1890abb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt >@@ -314,6 +314,11 @@ > [% INCLUDE 'datatables.inc' %] > [% Asset.js("js/acq.js") | $raw %] > [% Asset.js("js/funds_sorts.js") | $raw %] >+ <script> >+ const op = "[% op | html %]"; >+ const has_results = [% result_order_loop ? 1 : 0 | html %]; >+ </script> >+ > <script> > function update_ordernumber_list(){ > var ordernumbers = []; >@@ -331,7 +336,7 @@ > paging: false, > }); > >- [% IF op == 'search' OR op == 'select' %] >+ if (op == 'search' || op == 'select'){ > patron_autocomplete($("#find_patron"), { > "on-select-add-to": { > container: $("#basket_creators"), >@@ -342,20 +347,20 @@ > return false; > } > }); >- [% END %] >+ } > > $("#show_orders_filters, #hide_orders_filters").on('click', function(e) { > e.preventDefault(); > $('#orders_filters').toggle(); > $('.toggle_orders_filters').toggle(); > }); >- [% IF op == 'search' OR op == 'select' AND NOT result_order_loop %] >+ if ( op == 'search' || op == 'select' && !has_result ){ > $("#show_orders_filters").hide(); > $("#orders_filters").show(); >- [% ELSE %] >+ } else { > $("#hide_orders_filters").hide(); > $("#orders_filters").hide(); >- [% END %] >+ } > > $("input[name='ordernumber']").on("change", function(){ > if ( $(this).is(':checked') ) { >-- >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 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