ctual prod
This commit is contained in:
parent
e4d1f4a770
commit
e0a941fd74
14
js/crm.js
14
js/crm.js
@ -4257,8 +4257,6 @@ $(document).ready(function() {
|
||||
$("#send_bg_new .edit-modal").toggle(10);
|
||||
$("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) } }));
|
||||
|
||||
var komy = 0;
|
||||
@ -6308,16 +6306,6 @@ $(document).ready(function() {
|
||||
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 {
|
||||
if (isNaN(parseInt($('#summa_sdelki').val()))) {
|
||||
alert("Введите сумму сделки");
|
||||
@ -10783,8 +10771,6 @@ function save_client(params, funnel_id, poles){
|
||||
$("#send_bg_new .edit-modal").toggle(10);
|
||||
$("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) } }));
|
||||
|
||||
var komy = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user