From 5870b21ae366de4cf13a6a32717da13ab0957928 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 17 Jul 2020 14:43:39 +0000 Subject: [PATCH] Bug 26008: Remove the use of jquery.checkboxes plugin from OPAC cart This patch removes the use of the jquery.checkboxes plugin from the OPAC cart and replaces its functionality with "plain" jQuery. To test, apply the patch and add some items to the Cart in the OPAC. - Open the Cart window in the OPAC by clicking the "Cart" link in the header. - Test that the "Select all" and "Clear all" links work correctly to check and uncheck all checkboxes. - Controls like "Remove" and "Place hold" should be enabled or disabled according to whether there are any checked checkboxes. - Test that manually checking a checkbox correctly enables or disables the link options too. - Test that the "Remove" or "Place hold" controls work correctly, applying to only the checked checkboxes. Signed-off-by: Sally Signed-off-by: Katrin Fischer --- .../opac-tmpl/bootstrap/en/modules/opac-basket.tt | 33 +++++++++------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt index d85427b60a..d7563ff176 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt @@ -324,7 +324,6 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] - [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] [% Asset.js("lib/hc-sticky.js") | $raw %] [% INCLUDE 'datatables.inc' %]