Bugzilla – Attachment 108423 Details for
Bug 26202
Remove the use of jquery.checkboxes plugin from batch record modification page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26202: Remove the use of jquery.checkboxes plugin from batch record modification page
Bug-26202-Remove-the-use-of-jquerycheckboxes-plugi.patch (text/plain), 2.44 KB, created by
Katrin Fischer
on 2020-08-17 22:03:45 UTC
(
hide
)
Description:
Bug 26202: Remove the use of jquery.checkboxes plugin from batch record modification page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-08-17 22:03:45 UTC
Size:
2.44 KB
patch
obsolete
>From ccd055d981adc9a3d1b1f8da4008c9f55ea061af Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 13 Aug 2020 13:19:19 +0000 >Subject: [PATCH] Bug 26202: Remove the use of jquery.checkboxes plugin from > batch record modification page > >This patch removes the use of the jquery.checkboxes plugin from the >batch record modification page. > >To test, apply the patch and go to Tools -> Batch record modification > > - Submit a batch of biblionumbers for modification. > - On the results page, test the "Select all" and "Clear all" links to > confirm that they work correctly. > >Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/tools/batch_record_modification.tt | 16 +++++++++++----- > 1 file changed, 11 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >index 66de6f4b1c..19aab275b5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >@@ -302,7 +302,6 @@ > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/tools-menu.js") | $raw %] > [% INCLUDE 'datatables.inc' %] >- [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] > [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] > [% Asset.js("js/background-job-progressbar.js") | $raw %] > <script> >@@ -317,14 +316,21 @@ > $("#show_list_option").show(); > } > }); >- $("#selectall").click(function(e) { >+ >+ $("#selectall").click(function(e){ > e.preventDefault(); >- $(".records").checkCheckboxes(); >+ $(".records input[type='checkbox']").each(function(){ >+ $(this).prop("checked", true); >+ }); > }); >- $("#clearall").click(function(e) { >+ >+ $("#clearall").click(function(e){ > e.preventDefault(); >- $(".records").unCheckCheckboxes(); >+ $(".records input[type='checkbox']").each(function(){ >+ $(this).prop("checked", false); >+ }); > }); >+ > $("#selectall").click(); > > $("table#biblios").dataTable($.extend(true, {}, dataTablesDefaults, { >-- >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 26202
:
108181
|
108406
| 108423