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');