From 8395187a9822dae95b85b876a143b867acc7fb33 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 16 Jul 2018 17:24:04 +0000 Subject: [PATCH] Bug 21041: "Merge patrons" button remains disabled with "Select all" option This patch modifies the JavaScript functions for the select all/clear all links so that each action triggers the "change" event, required to enable or disabled the "merge selected patrons" button. To test, apply the patch and perform a patron search which will return multiple results. - Test the "select all" and "clear all" links, and confirm that the "Merge selected patrons" button is enabled and disabled. - Test that checking and unchecking multiple checkboxes still works correctly to enable and disable the button. Signed-off-by: Pierre-Luc Lapointe Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens (cherry picked from commit 4b9021895a46bda5234cd6c852f339ba7cd4d882) Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index fb62cb9132..71c6363e00 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -342,11 +342,11 @@ }); $("#select_all").on("click",function(e){ e.preventDefault(); - $(".selection").prop("checked", true); + $(".selection").prop("checked", true).change(); }); $("#clear_all").on("click",function(e){ e.preventDefault(); - $(".selection").prop("checked", false); + $(".selection").prop("checked", false).change(); }); $("#clear_search").on("click",function(e){ e.preventDefault(); -- 2.39.5