Difference between revisions of "Widget:DCTList"
From LINKS Community Center
Line 538: | Line 538: | ||
// Close filter pane when clicked outside of it. | // Close filter pane when clicked outside of it. | ||
− | |||
document.body.addEventListener('click', function (event) { | document.body.addEventListener('click', function (event) { | ||
+ | const filterPane = document.getElementById('dct-filters'); | ||
if (filterPane.contains(event.target) && filterPane.classList.contains('open')) { | if (filterPane.contains(event.target) && filterPane.classList.contains('open')) { | ||
filterPane.classList.remove('open'); | filterPane.classList.remove('open'); |
Revision as of 17:17, 6 September 2022
Development verstion of the DCT List.
Not ready for production!