Fix add new client in deal
This commit is contained in:
parent
73f030a529
commit
420d518a09
@ -4256,6 +4256,10 @@ $(document).ready(function() {
|
|||||||
$('#send_bg_new').fadeOut(500);
|
$('#send_bg_new').fadeOut(500);
|
||||||
$("#send_bg_new .edit-modal").toggle(10);
|
$("#send_bg_new .edit-modal").toggle(10);
|
||||||
$("body").removeClass("lock");
|
$("body").removeClass("lock");
|
||||||
|
|
||||||
|
// Хук для deal SPA — уведомляем о создании нового клиента
|
||||||
|
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;
|
var komy = 0;
|
||||||
$('#komy option').each(function() {
|
$('#komy option').each(function() {
|
||||||
if ($(this).val() == email) komy++;
|
if ($(this).val() == email) komy++;
|
||||||
@ -10767,6 +10771,10 @@ function save_client(params, funnel_id, poles){
|
|||||||
$('#send_bg_new').fadeOut(500);
|
$('#send_bg_new').fadeOut(500);
|
||||||
$("#send_bg_new .edit-modal").toggle(10);
|
$("#send_bg_new .edit-modal").toggle(10);
|
||||||
$("body").removeClass("lock");
|
$("body").removeClass("lock");
|
||||||
|
|
||||||
|
// Хук для deal SPA — уведомляем о создании нового клиента
|
||||||
|
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;
|
var komy = 0;
|
||||||
$('#komy option').each(function() {
|
$('#komy option').each(function() {
|
||||||
if ($(this).val() == params.email) komy++;
|
if ($(this).val() == params.email) komy++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user