From bff517565329cf410c181d0a589a026e50673ad8 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 17 Dec 2024 12:52:47 +0300 Subject: [PATCH] =?utf8?q?ERP-259=20=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?utf8?q?=D1=82=D0=BA=D0=B0=20=D0=B2=D1=82=D0=BE=D1=80=D0=BE=D0=B3=D0=BE?= =?utf8?q?=20=D1=88=D0=B0=D0=B3=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4?= =?utf8?q?=D0=B0=D1=87=D0=B8=20=D1=81=D0=BC=D0=B5=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/web/js/shift-transfer/replacement.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/web/js/shift-transfer/replacement.js b/erp24/web/js/shift-transfer/replacement.js index d79ec507..d700f55f 100644 --- a/erp24/web/js/shift-transfer/replacement.js +++ b/erp24/web/js/shift-transfer/replacement.js @@ -251,7 +251,7 @@ function setDynamicMaxValue(inputElement, rowId) { }); } -$('.field-shifttransfer-equalizationremains').on('input', '.list-cell__product_replacement_count input', function () { +$('.field-shifttransfer-equalizationremains').on('input change', '.list-cell__product_replacement_count input', function () { var inputElement = $(this); var rowId = inputElement.closest('tr').index(); var max = parseFloat($(inputElement).attr('max')); @@ -261,7 +261,7 @@ $('.field-shifttransfer-equalizationremains').on('input', '.list-cell__product_r if (value > max) { alert('Максимальное допустимое значение: ' + max); - $(inputElement).val(max); + $(inputElement).val(max); } }); -- 2.39.5