Form changes Horizon - Upload Daily Field Work Photo
Specific Folder FTP Upload / ftp-deploy (push) Successful in 28s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 28s
Details
This commit is contained in:
parent
58b80b8ef4
commit
9d47e0ef21
|
|
@ -312,7 +312,37 @@
|
|||
text: 'Your data is successfully submitted!',
|
||||
icon: 'success'
|
||||
})
|
||||
// Reset normal form fields
|
||||
$('#report-form').trigger("reset");
|
||||
|
||||
// Clear the captured photo
|
||||
if (photoInput) {
|
||||
photoInput.value = '';
|
||||
}
|
||||
|
||||
// Clear the captured photo preview
|
||||
if (preview) {
|
||||
preview.src = '';
|
||||
preview.style.display = 'none';
|
||||
}
|
||||
|
||||
// Hide the camera preview
|
||||
if (video) {
|
||||
video.style.display = 'none';
|
||||
}
|
||||
|
||||
// Stop the camera if it is still running
|
||||
stopPhotoCamera();
|
||||
|
||||
// Reset camera buttons
|
||||
$('#start-photo-camera').show();
|
||||
$('#capture-photo').hide();
|
||||
$('#retake-photo').hide();
|
||||
|
||||
// Restore today's date after resetting the form
|
||||
if (dateField) {
|
||||
dateField.value = currentDate;
|
||||
}
|
||||
} else {
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
|
|
@ -340,7 +370,7 @@
|
|||
dateField.setAttribute('max', currentDate);
|
||||
dateField.style.pointerEvents = 'none';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
let photoStream = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue