Disable the initial odometer reading field if it's non-zero to prevent accidental editing.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-07-02 10:54:11 -06:00
parent 07f5e66491
commit 7b6b62c623
9 changed files with 25 additions and 9 deletions

View File

@@ -208,4 +208,12 @@ function saveMultipleOdometerRecordsToVehicle() {
errorToast(genericErrorMessage());
}
})
}
function toggleInitialOdometerEnabled() {
if ($("#initialOdometerRecordMileage").prop("disabled")) {
$("#initialOdometerRecordMileage").attr("disabled", false);
} else {
$("#initialOdometerRecordMileage").attr("disabled", true);
}
}