Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 774: Line 774:
 
                 if (action.filter) {
 
                 if (action.filter) {
 
                     Object.keys(action.filter).forEach(fnCat => {
 
                     Object.keys(action.filter).forEach(fnCat => {
 +
                        console.log('func-filter-' + escapeAttr(fnCat))
 
                         const fnBlock = document.getElementById('func-filter-' + escapeAttr(fnCat)).closest('.func-filter-block');
 
                         const fnBlock = document.getElementById('func-filter-' + escapeAttr(fnCat)).closest('.func-filter-block');
 
                         fnBlock.querySelectorAll('input[type="checkbox"]').forEach(box => box.checked = actions.filter[fnCat]);
 
                         fnBlock.querySelectorAll('input[type="checkbox"]').forEach(box => box.checked = actions.filter[fnCat]);

Revision as of 15:08, 24 November 2022

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