ctual prod

This commit is contained in:
mac 2026-07-06 10:38:29 +03:00
parent e4d1f4a770
commit e0a941fd74

View File

@ -4257,8 +4257,6 @@ $(document).ready(function() {
$("#send_bg_new .edit-modal").toggle(10); $("#send_bg_new .edit-modal").toggle(10);
$("body").removeClass("lock"); $("body").removeClass("lock");
// Хук для deal
console.log('[crm.js] save_client (else) success, dispatching deal:clientCreated, id:', data);
window.dispatchEvent(new CustomEvent('deal:clientCreated', { detail: { id: parseInt(data) } })); window.dispatchEvent(new CustomEvent('deal:clientCreated', { detail: { id: parseInt(data) } }));
var komy = 0; var komy = 0;
@ -6308,16 +6306,6 @@ $(document).ready(function() {
data: JSON.stringify(factPayload) data: JSON.stringify(factPayload)
}); });
} }
// Ставим calendar_view = 1 для событий сделки после закрытия
if (window.dealCloseData && window.dealCloseData.id) {
var dealId = window.dealCloseData.id;
$.ajax({
url: '/deal/index.php?path=deals/' + dealId + '/events/calendar-view',
type: 'GET',
contentType: 'application/json',
});
}
} else { } else {
if (isNaN(parseInt($('#summa_sdelki').val()))) { if (isNaN(parseInt($('#summa_sdelki').val()))) {
alert("Введите сумму сделки"); alert("Введите сумму сделки");
@ -10783,8 +10771,6 @@ function save_client(params, funnel_id, poles){
$("#send_bg_new .edit-modal").toggle(10); $("#send_bg_new .edit-modal").toggle(10);
$("body").removeClass("lock"); $("body").removeClass("lock");
// Хук для deal
console.log('[crm.js] save_client success, dispatching deal:clientCreated, id:', data);
window.dispatchEvent(new CustomEvent('deal:clientCreated', { detail: { id: parseInt(data) } })); window.dispatchEvent(new CustomEvent('deal:clientCreated', { detail: { id: parseInt(data) } }));
var komy = 0; var komy = 0;