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 674: Line 674:
             // Listen for changes in filter checkbox state.
             // Listen for changes in filter checkbox state.
             document.getElementById('functions-filter').addEventListener('change', event => {
             document.getElementById('functions-filter').addEventListener('change', event => {
                console.log('loop check!')
                 const filterBlock = event.target.closest('.func-filter-block');
                 const filterBlock = event.target.closest('.func-filter-block');
                 const category = filterBlock.querySelector('input.func-cat');
                 const category = filterBlock.querySelector('input.func-cat');
Line 685: Line 686:
                 // Picking at least one subfunction activates the category.
                 // Picking at least one subfunction activates the category.
                 // Picking zero subfunctions deactivates the category.
                 // Picking zero subfunctions deactivates the category.
                // console.log(filterBlock)
 
                // console.log(subfunctions)
                 applyFilters();
                 applyFilters();
             }, { passive: true });
             }, { passive: true });

Revision as of 15:52, 18 November 2022

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