From cd875f74c759caa02432de7f46c6a3b62b72fe03 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Fri, 25 Jul 2025 12:07:39 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?utf8?q?=D1=83=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D0=B5=20=D1=81=D0=BE=D1=85?= =?utf8?q?=D1=80=D0=B0=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/web/js/autoplannogramma/autoplannogramma.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erp24/web/js/autoplannogramma/autoplannogramma.js b/erp24/web/js/autoplannogramma/autoplannogramma.js index 7a4adf1a..27327792 100644 --- a/erp24/web/js/autoplannogramma/autoplannogramma.js +++ b/erp24/web/js/autoplannogramma/autoplannogramma.js @@ -396,9 +396,10 @@ $('.btn-save').on('click', function () { const $input = $(this); const id = $input.data('id'); const value = $input.val(); - const $arrow = $input.closest('div').find('svg path'); + const originalValue = $input.data('original-value'); - if ($arrow.attr('fill') !== 'red') { + + if (parseFloat(value) === parseFloat(originalValue)) { return; } -- 2.39.5