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:
parent
26914173fd
commit
83f17afef6
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue