Bug 43267: Disable "Batch operations" menu when there's nothing to send

So we don't send an empty set to the tool

Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Jonathan Druart 2026-09-15 12:10:39 +02:00 committed by Pedro Amorim
parent 26914173fd
commit 83f17afef6
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 3 additions and 0 deletions

View File

@ -2671,6 +2671,9 @@
var reserveIds = visibleValues("reserve_id");
setTextarea("#reserve_ids_list", reserveIds);
var has_batchable_values = itemnumbers.length || biblionumbers.length || borrowernumbers.length || cardnumbers.length || reserveIds.length;
$("#batch_mod_menu").prop("disabled", !has_batchable_values);
}
$("#batch_add_to_list").on("submit", function (e) {