LIVE_FIX_Action_menu

This commit is contained in:
sanjeev.p 2026-04-16 15:25:29 +05:30
parent 79d54dd60b
commit ce741a00cf

View File

@ -834,6 +834,22 @@
}
function showEmailHistoryModal() {
var $modal = $('#EmailModal');
if (typeof jQuery !== 'undefined' && jQuery.fn && typeof jQuery.fn.modal === 'function') {
$modal.modal('show');
return;
}
if (window.bootstrap && bootstrap.Modal) {
bootstrap.Modal.getOrCreateInstance(document.getElementById('EmailModal')).show();
}
}
$('#EmailModal').on('hidden.bs.modal', function () {
$('body').removeClass('modal-open');
$('.modal-backdrop').remove();
});
function getLeadsDataForMailHistory(lead_id){
console.log("******** Inside Fnz :", lead_id);
@ -953,7 +969,7 @@
`;
}
// Show modal always
new bootstrap.Modal(document.getElementById("EmailModal")).show();
showEmailHistoryModal();
})
.catch(error => {
@ -963,8 +979,7 @@
<p class="text-center font-color-black"><i>No Data Found</i></p>
</div>
`;
let EmailModal = new bootstrap.Modal(document.getElementById("EmailModal"));
EmailModal.show();
showEmailHistoryModal();
console.error(error);
});
}
@ -2146,6 +2161,74 @@
});
});
</script>
<script>
$(document).ready(function() {
// Delegated click handlers for action menu items
// Non-EB RFQ Sheet Creation
$(document).on('click', '.btnRfqSheetList', function(e) {
e.preventDefault();
var leadId = $(this).data('id');
if (leadId) {
createRfqSheetFromList(leadId);
}
});
// Non-EB QCR Sheet Creation
$(document).on('click', '.btnQcrSheetList', function(e) {
e.preventDefault();
var leadId = $(this).data('id');
if (leadId) {
createQcrSheetFromList(leadId);
}
});
// Non-EB Internal Mail
$(document).on('click', '.btnInternalMailList', function(e) {
e.preventDefault();
var leadId = $(this).data('id');
if (leadId) {
openInternalMailFromList(leadId);
}
});
// Non-EB Insurer Mail
$(document).on('click', '.btnInsurerMailList', function(e) {
e.preventDefault();
var leadId = $(this).data('id');
if (leadId) {
openInsurerMailFromList(leadId);
}
});
// Non-EB Client Mail
$(document).on('click', '.btnClientMailList', function(e) {
e.preventDefault();
var leadId = $(this).data('id');
if (leadId) {
openClientMailFromList(leadId);
}
});
// Non-EB Placement
$(document).on('click', '.btnPlacementList', function(e) {
e.preventDefault();
var leadId = $(this).data('id');
if (leadId) {
openPlacementFromList(leadId);
}
});
// Email History
$(document).on('click', '.btnHistory', function(e) {
e.preventDefault();
var leadId = $(this).data('id');
if (leadId) {
getLeadsDataForMailHistory(leadId);
}
});
});
</script>
<script>
$(document).ready(function() {
if (typeof openOpportunitiesListFilterNav !== 'function') {
@ -2153,4 +2236,3 @@
}
});
</script>
</script>