Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 538: Line 538:


         // Close filter pane when clicked outside of it.
         // Close filter pane when clicked outside of it.
        const filterPane = document.querySelector('#dct-filters');
         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 16:17, 6 September 2022

Development verstion of the DCT List.
Not ready for production!