Skip to content

Commit

Permalink
coleventlist
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsholland committed Sep 3, 2023
1 parent d12f163 commit 765d192
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fetchxml/fetchxml.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const btn = document.querySelector('button');
const checkbox = document.querySelector('.filterCheckbox');
const output = document.querySelector('.outputarea');

colField.addEventListener("input", generateFetch);
inputField.addEventListener("input", generateFetch);
checkbox.addEventListener("click", generateFetch);

Expand Down Expand Up @@ -33,7 +34,7 @@ function generateFetch() {

//add filter tags before and after
if (checkbox.checked) {
outputArr.unshift('<filter type="or">');
outputArr.unshift('<filter>');
outputArr.push('</filter>');
};

Expand Down

0 comments on commit 765d192

Please sign in to comment.