Skip to content

Commit

Permalink
Bugfix #122
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkPersky committed Nov 4, 2023
1 parent 8f6946a commit 1f82913
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Resources/Private/Assets/src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ import configCookie from './html/config/cookie.html?raw';
}
});
// set required
if(id == 'required') {
if(id == 'require') {
e.checked = true;
e.disabled = true;
}
Expand Down Expand Up @@ -544,12 +544,13 @@ import configCookie from './html/config/cookie.html?raw';
id = id.replace('dp--cookie-', '');
// filter check
switch (id) {
case 'required':
case 'require':
break;
default:
filteres.push(e);
}
});

return filteres;
};
/**
Expand Down Expand Up @@ -1129,6 +1130,8 @@ import configCookie from './html/config/cookie.html?raw';
var type = e.getAttribute('data-cookieconsent');
// get checkbox
var checkbox = cc.popup.getCheckboxInputs();

console.log(checkbox);
// chackboxes found?
if (checkbox.length > 0) {
checkbox.forEach(e => {
Expand Down
Loading

0 comments on commit 1f82913

Please sign in to comment.