Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwood committed Sep 16, 2024
1 parent 307d240 commit a397807
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ <h4 class="margin-top:1 margin-bottom:1">2. Download the results</h4>
}
}

updateFieldsList() {
updateFieldsList () {
this.fieldsChosen = Array.from(this.chosenFieldList.children).map((item) => {
return JSON.parse(item.dataset.option);
});
Expand All @@ -300,7 +300,7 @@ <h4 class="margin-top:1 margin-bottom:1">2. Download the results</h4>
}
}

setupEvents() {
setupEvents () {
this.clearBtn.addEventListener('click', () => {
this.toAdd.clear();
/* Clear the selection ticks */
Expand Down Expand Up @@ -331,6 +331,7 @@ <h4 class="margin-top:1 margin-bottom:1">2. Download the results</h4>
/* select all N * for a parent field */
el.getElementsByClassName('dl-select-all-child-fields')[0].addEventListener('click', (e) => {
e.preventDefault();
e.stopPropagation();

const childFields = document.getElementById(el.dataset.toggleTarget);
/* Select/deselect all the fields in this group */
Expand Down

0 comments on commit a397807

Please sign in to comment.