Improved UI UX

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-04-07 12:50:28 -06:00
parent ca975bbdd3
commit b008ce2ab8
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');