fixed modal for scan
This commit is contained in:
parent
94742022f6
commit
0201edb9b0
|
|
@ -106,10 +106,10 @@ function toggleModal() {
|
||||||
body.classList.toggle("modal-active");
|
body.classList.toggle("modal-active");
|
||||||
}
|
}
|
||||||
|
|
||||||
function onScanSuccess(decodedText, decodedResult) {
|
// function onScanSuccess(decodedText, decodedResult) {
|
||||||
// Handle on success condition with the decoded text or result.
|
// // Handle on success condition with the decoded text or result.
|
||||||
console.log(`Scan result: ${decodedText}`, decodedResult);
|
// console.log(`Scan result: ${decodedText}`, decodedResult);
|
||||||
}
|
// }
|
||||||
|
|
||||||
var html5QrcodeScanner = new Html5QrcodeScanner(
|
var html5QrcodeScanner = new Html5QrcodeScanner(
|
||||||
"reader", { fps: 10, qrbox: 250 });
|
"reader", { fps: 10, qrbox: 250 });
|
||||||
|
|
@ -143,8 +143,7 @@ function onScanSuccess(decodedText, decodedResult) {
|
||||||
else{
|
else{
|
||||||
$('#attender_consent').append("Photo and video consent: Declined");
|
$('#attender_consent').append("Photo and video consent: Declined");
|
||||||
}
|
}
|
||||||
if(modal_status == 0){
|
if(!$("body").hasClass("modal-active")) {
|
||||||
modal_status = 1;
|
|
||||||
toggleModal();
|
toggleModal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue