Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 536: | Line 536: | ||
document.getElementById('dct-filters').classList.toggle('open'); | document.getElementById('dct-filters').classList.toggle('open'); | ||
} | } | ||
// Close filter pane when clicked outside of it. | |||
const filterPane = document.querySelector('#dct-filters'); | |||
document.body.addEventListener('click', function (event) { | |||
if (filterPane.contains(event.target) && filterPane.classList.contains('open')) { | |||
filterPane.classList.remove('open'); | |||
} | |||
}, { passive: true }); | |||
</script> | </script> | ||
Revision as of 16:16, 6 September 2022
Development verstion of the DCT List.
Not ready for production!