Bugzilla – Attachment 108420 Details for
Bug 26213
Remove the use of jquery.checkboxes plugin when adding orders from MARC file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26213: Remove the use of jquery.checkboxes plugin when adding orders from MARC file
Bug-26213-Remove-the-use-of-jquerycheckboxes-plugi.patch (text/plain), 3.04 KB, created by
Katrin Fischer
on 2020-08-17 21:51:57 UTC
(
hide
)
Description:
Bug 26213: Remove the use of jquery.checkboxes plugin when adding orders from MARC file
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-08-17 21:51:57 UTC
Size:
3.04 KB
patch
obsolete
>From b62779690a3c8b3335845fd2f8cd661bac32e4f9 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 14 Aug 2020 14:18:00 +0000 >Subject: [PATCH] Bug 26213: Remove the use of jquery.checkboxes plugin when > adding orders from MARC file > >This patch removes the use of the jquery.checkboxes plugin from the page >for adding orders to a basket from a staged MARC file. > >This patch fixes an unreported bug wherein the "select all" and "clear >all" controls affected not only MARC record checkboxes but also the >"show inactive funds" checkboxes. > >To test, apply the patch and go to Acquisitions. > >- Go to Vendor -> Add to basket -> From a staged file. >- Select a staged file with multiple records. >- Test the "Select all" and "Clear all" links at the top of the "Select > to import" tab. They should work correctly to select and deselect > checkboxes corresponding to staged MARC records. > >Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt | 1 - > koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js | 14 ++++++-------- > 2 files changed, 6 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >index 0e07f20cff..ebe364e3cb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >@@ -15,7 +15,6 @@ > [%# As long as cataloging plugins rely on <script> tags added inline, JS must be in the header %] > [% Asset.js("js/acquisitions-menu.js") | $raw %] > [% INCLUDE 'datatables.inc' %] >-[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] > [% Asset.js("js/acq.js") | $raw %] > [% Asset.js("js/funds_sorts.js") | $raw %] > [% Asset.js("js/addorderiso2709.js") | $raw %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js b/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js >index 8382532a64..04b8851936 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js >@@ -37,15 +37,13 @@ $(document).ready(function() { > $("div.biblio.unselected select").prop('disabled', false); > $("div.biblio.unselected input").prop('disabled', false); > >- $("#checkAll").click(function(){ >- $("#Aform").checkCheckboxes(); >- $("input:checkbox[name='import_record_id']").change(); >- return false; >+ $("#checkAll").click(function(e){ >+ e.preventDefault(); >+ $("input:checkbox[name='import_record_id']").prop("checked", true).change(); > }); >- $("#unCheckAll").click(function(){ >- $("#Aform").unCheckCheckboxes(); >- $("input:checkbox[name='import_record_id']").change(); >- return false; >+ $("#unCheckAll").click(function(e){ >+ e.preventDefault(); >+ $("input:checkbox[name='import_record_id']").prop("checked", false).change(); > }); > > $("input#add_order").on("click", function(e){ >-- >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 26213
:
108286
|
108410
| 108420