Widget: GuidelinesList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
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 12:01, 23 June 2023
Current version of the List of Guidelines.
Currently in use!