Merge branch 'main' of http://192.168.1.200:3000/Stratawiz/Rapport-Laravel
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:
commit
03367929f0
|
|
@ -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',
|
||||
|
|
@ -341,6 +371,7 @@
|
|||
dateField.style.pointerEvents = 'none';
|
||||
}
|
||||
|
||||
|
||||
|
||||
let photoStream = null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue