Bug 21041: "Merge patrons" button remains disabled with "Select all" option
authorOwen Leonard <oleonard@myacpl.org>
Mon, 16 Jul 2018 17:24:04 +0000 (17:24 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 9 Aug 2018 10:18:49 +0000 (11:18 +0100)
commit8395187a9822dae95b85b876a143b867acc7fb33
treef2f166c382de4d8d56f139a82d6ec268c7cc5df2
parentff6f4f7c8860d63f4dc2241fefdd9af84f158a4b
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 <pierreluc.lapointe@inLibro.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 4b9021895a46bda5234cd6c852f339ba7cd4d882)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt