Actual prod

This commit is contained in:
mac 2026-07-06 08:34:03 +03:00
parent 420d518a09
commit f20e510f00

View File

@ -4257,9 +4257,10 @@ $(document).ready(function() {
$("#send_bg_new .edit-modal").toggle(10);
$("body").removeClass("lock");
// Хук для deal SPA — уведомляем о создании нового клиента
// Хук для deal
console.log('[crm.js] save_client (else) success, dispatching deal:clientCreated, id:', data);
window.dispatchEvent(new CustomEvent('deal:clientCreated', { detail: { id: parseInt(data) } }));
var komy = 0;
$('#komy option').each(function() {
if ($(this).val() == email) komy++;
@ -10772,9 +10773,10 @@ function save_client(params, funnel_id, poles){
$("#send_bg_new .edit-modal").toggle(10);
$("body").removeClass("lock");
// Хук для deal SPA — уведомляем о создании нового клиента
// Хук для deal
console.log('[crm.js] save_client success, dispatching deal:clientCreated, id:', data);
window.dispatchEvent(new CustomEvent('deal:clientCreated', { detail: { id: parseInt(data) } }));
var komy = 0;
$('#komy option').each(function() {
if ($(this).val() == params.email) komy++;