check if function exists.

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-04-07 20:51:55 -06:00
parent 86d039e5b0
commit 083298303c

View File

@@ -69,12 +69,14 @@ function showEditPlanRecordTemplateModal(planRecordTemplateId, nocache) {
}
function hideAddPlanRecordModal() {
$('#planRecordModal').modal('hide');
if (getPlanRecordModelData().createdFromReminder) {
//show reminder Modal
$("#reminderRecordModal").modal("show");
}
if (getPlanRecordModelData().isTemplate) {
showPlanRecordTemplatesModal();
if (getPlanRecordModelData != undefined) {
if (getPlanRecordModelData().createdFromReminder) {
//show reminder Modal
$("#reminderRecordModal").modal("show");
}
if (getPlanRecordModelData().isTemplate) {
showPlanRecordTemplatesModal();
}
}
}
function deletePlanRecord(planRecordId) {