Skip to content

Commit

Permalink
removed logging from JS
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesstottmoj committed Nov 27, 2024
1 parent 404759f commit c3da923
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,15 @@ moj.Modules.toggleCheckboxForm = {
init() {
const panels = document.querySelectorAll(`.${this.subFormClass}`);
if (panels) {
console.log(panels);
this.bindEvents(panels);
}
},

bindEvents(panels) {

panels.forEach(panel => {
console.log(panel);
console.log(this.selector);
const attribute = panel.getAttribute(this.selector);
console.log(attribute);
var formItem = document.querySelector(`[value=${attribute}]`);
console.log(formItem);

this.setVisibility(panel, formItem.checked);

Expand Down

0 comments on commit c3da923

Please sign in to comment.