From 4dd1f7371b153cf669e9ea447b59ae656e53c4a8 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 --- 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 c1606932d0..97009297d2 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.30.2