|
@ -3,15 +3,11 @@ |
|
|
var qrCodeCheckbox = document.getElementById("qrcode-show"); |
|
|
var qrCodeCheckbox = document.getElementById("qrcode-show"); |
|
|
if (qrCodeCheckbox !== null) { |
|
|
if (qrCodeCheckbox !== null) { |
|
|
qrCodeCheckbox.addEventListener('change', function() { |
|
|
qrCodeCheckbox.addEventListener('change', function() { |
|
|
var qrCodeCheckbox = document.getElementById("qrcode-show"); |
|
|
|
|
|
if (qrCodeCheckbox == null) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
var qrCodes = document.getElementsByClassName('qrcode'); |
|
|
var qrCodes = document.getElementsByClassName('qrcode'); |
|
|
for(var i=0; i<qrCodes.length; i++) { |
|
|
for(var i=0; i<qrCodes.length; i++) { |
|
|
qrCodes[i].style.display = qrCodeCheckbox.checked ? "block" : "none"; |
|
|
qrCodes[i].style.display = qrCodeCheckbox.checked ? "block" : "none"; |
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Dropzone.options.dropzone = { |
|
|
Dropzone.options.dropzone = { |
|
@ -74,7 +70,6 @@ Dropzone.options.dropzone = { |
|
|
qrCode.className = "qrcode"; |
|
|
qrCode.className = "qrcode"; |
|
|
file.uploadElement.qrCode = qrCode; |
|
|
file.uploadElement.qrCode = qrCode; |
|
|
// Determine if the QR code should be shown or not
|
|
|
// Determine if the QR code should be shown or not
|
|
|
var qrCodeCheckbox = document.getElementById("qrcode-show"); |
|
|
|
|
|
if (qrCodeCheckbox !== null) { |
|
|
if (qrCodeCheckbox !== null) { |
|
|
qrCode.style.display = qrCodeCheckbox.checked ? "block" : "none"; |
|
|
qrCode.style.display = qrCodeCheckbox.checked ? "block" : "none"; |
|
|
} |
|
|
} |
|
|