From 38641f36b084b136394ed7defecaebbc4005f07a Mon Sep 17 00:00:00 2001 From: fomichev Date: Tue, 1 Jul 2025 17:01:46 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?utf8?q?=D0=B5=D1=80=D0=B5=D1=81=D1=87=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/web/js/category-plan/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/erp24/web/js/category-plan/index.js b/erp24/web/js/category-plan/index.js index 38b02a90..2e80485f 100644 --- a/erp24/web/js/category-plan/index.js +++ b/erp24/web/js/category-plan/index.js @@ -66,7 +66,8 @@ function editProcent(zis) { throw new Error('Некорректное число'); } }); - + const previousValue = zis.dataset.prev || zis.defaultValue; + zis.dataset.prev = zis.value; $.ajax({ method: "POST", @@ -99,6 +100,7 @@ function editProcent(zis) { $('#rebuild').prop('disabled', false); }, error: function() { + zis.value = previousValue; alert('Ошибка сохранения! Попробуйте ещё раз.'); } }); @@ -204,7 +206,8 @@ $(document).ready(() => { data: { year: $('#dynamicmodel-year').val(), month: $('#dynamicmodel-month').val(), - store_id: store_id + store_id: store_id, + [param26]: token26 }, success: function (data) { if (data.status == 'running') { -- 2.39.5