Bugzilla – Attachment 112475 Details for
Bug 26767
Remove the use of jquery.checkboxes plugin from duplicate orders template
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26767: Remove the use of jquery.checkboxes plugin from duplicate orders template
Bug-26767-Remove-the-use-of-jquerycheckboxes-plugi.patch (text/plain), 2.48 KB, created by
Katrin Fischer
on 2020-10-25 13:36:39 UTC
(
hide
)
Description:
Bug 26767: Remove the use of jquery.checkboxes plugin from duplicate orders template
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-10-25 13:36:39 UTC
Size:
2.48 KB
patch
obsolete
>From c28f7befec97e539de494c871e187fca28ce8886 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 21 Oct 2020 17:26:56 +0000 >Subject: [PATCH] Bug 26767: Remove the use of jquery.checkboxes plugin from > duplicate orders template > >This patch removes the use of the jquery.checkboxes plugin from the >duplicate orders template in acquisitions. > >To test, apply the patch and go to Acquisitions -> Vendor -> Basket. > >- Click "Add to basket." >- Click "From existing orders (copy)." >- Perform a search which will return some orders. >- Test the "Select all" and "Clear all" links. Confirm that they work > correctly. > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt | 11 ++++------- > 1 file changed, 4 insertions(+), 7 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 34f23327f3..1ed05775ef 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 >@@ -304,7 +304,6 @@ Basket [% basket.basketno | html %] › Duplicate existing orders > [% Asset.js("js/autocomplete/patrons.js") | $raw %] > [% Asset.js("js/acq.js") | $raw %] > [% Asset.js("js/funds_sorts.js") | $raw %] >- [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] > <script> > function update_ordernumber_list(){ > var ordernumbers = []; >@@ -368,17 +367,15 @@ Basket [% basket.basketno | html %] › Duplicate existing orders > update_ordernumber_list(); > }); > function selectAll () { >- $("#table_orders").checkCheckboxes(); > $("#table_orders").find("input[type='checkbox'][name='ordernumber']").each(function(){ >- $(this).change(); >- } ); >+ $(this).prop("checked", true).change(); >+ }); > return false; > } > function clearAll () { >- $("#table_orders").unCheckCheckboxes(); > $("#table_orders").find("input[type='checkbox'][name='ordernumber']").each(function(){ >- $(this).change(); >- } ); >+ $(this).prop("checked", false).change(); >+ }); > return false; > } > >-- >2.11.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 26767
:
112116
|
112467
| 112475