LIVE_FIX_Action_menu
This commit is contained in:
parent
79d54dd60b
commit
ce741a00cf
@ -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){
|
function getLeadsDataForMailHistory(lead_id){
|
||||||
|
|
||||||
console.log("******** Inside Fnz :", lead_id);
|
console.log("******** Inside Fnz :", lead_id);
|
||||||
@ -953,7 +969,7 @@
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
// Show modal always
|
// Show modal always
|
||||||
new bootstrap.Modal(document.getElementById("EmailModal")).show();
|
showEmailHistoryModal();
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
@ -963,8 +979,7 @@
|
|||||||
<p class="text-center font-color-black"><i>No Data Found</i></p>
|
<p class="text-center font-color-black"><i>No Data Found</i></p>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
let EmailModal = new bootstrap.Modal(document.getElementById("EmailModal"));
|
showEmailHistoryModal();
|
||||||
EmailModal.show();
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -2146,6 +2161,74 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</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>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
if (typeof openOpportunitiesListFilterNav !== 'function') {
|
if (typeof openOpportunitiesListFilterNav !== 'function') {
|
||||||
@ -2153,4 +2236,3 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</script>
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user