We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a76923 commit ed1b5dbCopy full SHA for ed1b5db
www/assets/js/consentAdmin.js
@@ -6,7 +6,7 @@ function checkConsent()
6
var checkbox = document.getElementById("checkbox_"+show_spid);
7
8
xmlHttp = GetXmlHttpObject()
9
- if (xmlHttp == null) {
+ if (xmlHttp === null) {
10
alert("Browser does not support HTTP Request")
11
return
12
}
@@ -69,8 +69,8 @@ document.addEventListener(
69
70
71
var checkbox = document.getElementsByClassName("checkbox");
72
- for (var i = 0; i < checkbox.length; i++) {
73
- checkbox[i].addEventListener(
+ for (var j = 0; j < checkbox.length; j++) {
+ checkbox[j].addEventListener(
74
'click',
75
checkConsent
76
);
0 commit comments