Bug 21555: Disable merge patrons button when using select all

This patch disables the merge patrons button when select all is clicked.
The button is re-enabled after clicking clear all or manually changing the selection.

To test:
1. Do a patron search
2. Select at least 2 patrons
3. The merge patron button is enabled
4. Click select all
5. The merge patron button is still enabled
6. Apply patch and refresh browser
7. Click select alll
8. The merge patron button is not enabled anymore
9. Change the selection manually
10. Confirm the merge patron button is re-enabled

Sponsored-by: CLAMS
Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit ecd2f81c75)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Brendan Lawlor 2025-09-09 14:58:13 +00:00 committed by Jacob O'Mara
parent 5d28ff9ea6
commit 98f06b046b
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -294,6 +294,7 @@
$(this).prop("checked", true).change();
}
});
$("#merge-patrons").prop("disabled", true);
});
$("#clear_all").on("click", function (e) {
e.preventDefault();