Difference between revisions of "Widget:GuidelinesList"
From LINKS Community Center
Line 640: | Line 640: | ||
const filter = actions.filter; | const filter = actions.filter; | ||
if (filter) { | if (filter) { | ||
− | + | const thematic = filter[THEME_PROP]; | |
− | const | + | if (thematic) { |
− | if ( | + | Object.keys(thematic).forEach(theme => { |
− | Object.keys( | + | const box = document.getElementById('thematic-filter-' + escapeAttr(theme)); |
− | const | + | box.checked = !!thematic[theme]; |
− | + | box.dispatchEvent(new Event('change', { bubbles: true })); | |
− | |||
}); | }); | ||
− | document.getElementById(' | + | document.getElementById('thematic-filter').closest('.filter-wrapper').classList.toggle('open'); |
} | } | ||
− | |||
− | |||
− | |||
applyFilters(); | applyFilters(); |
Revision as of 13:01, 23 June 2023
Current version of the List of Guidelines.
Currently in use!