From 82efd3df22e81a20bba17898be6afa50cf716282 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 27 Mar 2020 15:28:36 +0000 Subject: [PATCH] Bug 25004: Fix selector for checkboxes on results page To recreate: 0 - Make sure ability to place holds on OPAC is enabled (RequestOnOpac) 1 - Search on the opac to get multipel results 2 - Note place hold button is disabled 3 - Check a box next to a result 4 - Note place hold button not enabled 5 - Apply patch 6 - Do a new search 7 - Check a checkbox 8 - Note the 'PLace hold' button is enabled 9 - Sign off! Do a happy dance! Hugs --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 66912e6a44..68b8c2b17f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -674,7 +674,7 @@ function tagAdded() { function enableCheckboxActions(){ // Enable/disable controls if checkboxes are checked - var checkedBoxes = $(".checkboxed input:checkbox:checked"); + var checkedBoxes = $("input.cb:checked"); var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, #selections-toolbar .links label, #selections-toolbar .links button"); if ($(checkedBoxes).size()) { $("#selections").html(_("With selected titles: ")); -- 2.11.0