Merge pull request #472 from hargata/Hargata/planner.improvement.part2

Improved UI UX For Planner Edit
This commit is contained in:
Hargata Softworks
2024-04-07 12:51:28 -06:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -95,6 +95,9 @@
$("#inputSuppliesModalContent").html(data); $("#inputSuppliesModalContent").html(data);
$('#inputSuppliesModal').modal('show'); $('#inputSuppliesModal').modal('show');
recalculateTotal(); recalculateTotal();
if (copySuppliesAttachments) {
$('#inputCopySuppliesAttachments').attr('checked', true);
}
} }
}); });
} else { } else {

View File

@@ -73,6 +73,9 @@ function hideAddPlanRecordModal() {
//show reminder Modal //show reminder Modal
$("#reminderRecordModal").modal("show"); $("#reminderRecordModal").modal("show");
} }
if (getPlanRecordModelData().isTemplate) {
showPlanRecordTemplatesModal();
}
} }
function deletePlanRecord(planRecordId) { function deletePlanRecord(planRecordId) {
$("#workAroundInput").show(); $("#workAroundInput").show();
@@ -189,6 +192,7 @@ function savePlanRecordTemplate(isEdit) {
if (isEdit) { if (isEdit) {
hideAddPlanRecordModal(); hideAddPlanRecordModal();
showPlanRecordTemplatesModal(); showPlanRecordTemplatesModal();
$('[data-changed=true]').attr('data-changed', false)
successToast('Plan Template Updated'); successToast('Plan Template Updated');
} else { } else {
successToast('Plan Template Added'); successToast('Plan Template Added');