From 550e4dd8cd141dedd75a8aa54042a8f1948e0cc3 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 30 May 2023 16:13:00 -0300 Subject: [PATCH] Bug 33864: Trigger the 'change' event when setting quantity Signed-off-by: Tomas Cohen Arazi Signed-off-by: Andrew Nugged Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt index 05a1856389..4dca002ae4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -1159,7 +1159,8 @@ $("#creator").html([row.creator.surname, row.creator.firstname].filter(function(name){return name}).join(', ')+" ("+row.creator.patron_id+')') $("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id); $("#quantity").val( effective_create_items == 'cataloguing' ? row.quantity_received || 1 : row.quantity_received ) - .prop('readonly', !row.subscription_id && effective_create_items == 'receiving'); + .prop('readonly', !row.subscription_id && effective_create_items == 'receiving') + .change(); [% IF only_one_order %] $(".modal-save").prop('disabled', $("#quantity").val() == 0); [% END %] -- 2.39.5