From 58de5ec29a507cd28a0f6f64588d928bc0262c7c Mon Sep 17 00:00:00 2001 From: mac Date: Wed, 8 Jul 2026 13:39:38 +0300 Subject: [PATCH] Fix resetDealCloseModal --- js/crm_vue.js | 3 +-- js/main.js | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/crm_vue.js b/js/crm_vue.js index 98027c8..132a353 100644 --- a/js/crm_vue.js +++ b/js/crm_vue.js @@ -503,9 +503,8 @@ var ac = new Vue({ .catch(function() { callback(); }); }; - resetDealCloseModal(); + if (typeof resetDealCloseModal === 'function') resetDealCloseModal(); loadDealData(function() { - $("#del_client_bg").fadeIn(500); $("#del_client").toggle(10); $("#del_client").find('input[name="id_funnel_client"]').val(ac.step.funnel_id); diff --git a/js/main.js b/js/main.js index 3d95303..0659510 100644 --- a/js/main.js +++ b/js/main.js @@ -4171,6 +4171,9 @@ $(document).ready(function() { if (typeof resetDealCloseModal === 'function') resetDealCloseModal(); + // Сбрасываем id_funnel_client — при открытии через крестик это НЕ этап воронки + $('#del_client input[name=id_funnel_client]').val(0); + // Загружаем данные сделки для отображения информации $.ajax({ url: '/ajax/ajax_vue_requisitions.php',