Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 672: | Line 672: | ||
const subfunEl = document.getElementById('subfunc-filter-' + escapeAttr(subfun)); | const subfunEl = document.getElementById('subfunc-filter-' + escapeAttr(subfun)); | ||
subfunEl.checked = !!functions[subfun]; | subfunEl.checked = !!functions[subfun]; | ||
subfunEl.dispatchEvent(new Event('change', { bubbles: true })); | subfunEl.dispatchEvent(new Event('change', { bubbles: true })); | ||
}); | }); | ||
Line 777: | Line 768: | ||
// Listen for changes in filter checkbox state. | // Listen for changes in filter checkbox state. | ||
document.getElementById('functions-filter').addEventListener('change', event => { | document.getElementById('functions-filter').addEventListener('change', event => { | ||
const filterBlock = event.target.closest('.func-filter-block'); | const filterBlock = event.target.closest('.func-filter-block'); | ||
const category = filterBlock.querySelector('input.func-cat'); | const category = filterBlock.querySelector('input.func-cat'); |
Revision as of 13:03, 5 June 2023
Current version of the DCT List.
Not ready for production!