[UPDT] BIOMETRIC: Updated biometric device model by introduce device direction field to set attendance punch for in/out devices
This commit is contained in:
@@ -431,6 +431,28 @@ function handleHtmxTarget(event, path, verb) {
|
||||
return hxTarget;
|
||||
}
|
||||
|
||||
function hxConfirm(element, messageText) {
|
||||
Swal.fire({
|
||||
html: messageText,
|
||||
icon: "question",
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: "#008000",
|
||||
cancelButtonColor: "#d33",
|
||||
confirmButtonText: "Confirm",
|
||||
cancelButtonText: "Cancel",
|
||||
reverseButtons: true,
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
htmx.trigger(element, 'confirmed');
|
||||
}
|
||||
else {
|
||||
element.checked = false
|
||||
return false
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function handleDownloadAndRefresh(event, url) {
|
||||
// Use in import_popup.html file
|
||||
event.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user