From b008ce2ab86f6b60c783034fc65541c9ce885f5f Mon Sep 17 00:00:00 2001 From: "DESKTOP-GENO133\\IvanPlex" Date: Sun, 7 Apr 2024 12:50:28 -0600 Subject: [PATCH] Improved UI UX --- Views/Vehicle/_SupplyStore.cshtml | 3 +++ wwwroot/js/planrecord.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Views/Vehicle/_SupplyStore.cshtml b/Views/Vehicle/_SupplyStore.cshtml index 5662e9c..79d9763 100644 --- a/Views/Vehicle/_SupplyStore.cshtml +++ b/Views/Vehicle/_SupplyStore.cshtml @@ -95,6 +95,9 @@ $("#inputSuppliesModalContent").html(data); $('#inputSuppliesModal').modal('show'); recalculateTotal(); + if (copySuppliesAttachments) { + $('#inputCopySuppliesAttachments').attr('checked', true); + } } }); } else { diff --git a/wwwroot/js/planrecord.js b/wwwroot/js/planrecord.js index 5303858..c72cd09 100644 --- a/wwwroot/js/planrecord.js +++ b/wwwroot/js/planrecord.js @@ -73,6 +73,9 @@ function hideAddPlanRecordModal() { //show reminder Modal $("#reminderRecordModal").modal("show"); } + if (getPlanRecordModelData().isTemplate) { + showPlanRecordTemplatesModal(); + } } function deletePlanRecord(planRecordId) { $("#workAroundInput").show(); @@ -189,6 +192,7 @@ function savePlanRecordTemplate(isEdit) { if (isEdit) { hideAddPlanRecordModal(); showPlanRecordTemplatesModal(); + $('[data-changed=true]').attr('data-changed', false) successToast('Plan Template Updated'); } else { successToast('Plan Template Added');