Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 772: Line 772:
 
             if (encoded) {
 
             if (encoded) {
 
                 const action = JSON.parse(decodeURIComponent(atob(encoded)));
 
                 const action = JSON.parse(decodeURIComponent(atob(encoded)));
                 if (action.filter) {
+
                 if (action.filter && action.filter.functions) {
                     Object.keys(action.filter).forEach(fnCat => {
+
                     Object.keys(action.filter.functions).forEach(fnCat => {
 
                         console.log('func-filter-' + escapeAttr(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');

Revision as of 15:10, 24 November 2022

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