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 641: Line 641:
             });
             });


            // Listen for changes in filter checkbox state.
             document.getElementById('data-source-filter').addEventListener('change', event => {
             document.getElementById('data-source-filter').addEventListener('change', event => {
                 applyFilters();
                 applyFilters();
Line 653: Line 654:
                 applyFilters();
                 applyFilters();
             }, { passive: true });
             }, { passive: true });
            // Listen for clicks on filter toggles
            document.querySelectorAll('.filter-wrapper .filter-toggle').forEach(el => {
                const wrapper = el.closest('.filter-wrapper');
                el.addEventListener('click', event => {
                    wrapper.classList.toggle('open');
                });
            });
         });
         });



Revision as of 15:09, 13 September 2022

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