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 185: Line 185:
             if (!(filters[0] && filters[0].type)) { return; }
             if (!(filters[0] && filters[0].type)) { return; }


             const selectedSources = filters[0].type.dataSources;
             window.setTimeout(() => {
            document.querySelectorAll('.data-source-cell .data-source-img').forEach(img => {
                const selectedSources = filters[0].type.dataSources;
            if (selectedSources.includes(img.dataset.value)) { img.classList.remove('unselected') }
                document.querySelectorAll('.data-source-cell .data-source-img').forEach(img => {
            else { img.classList.add('unselected'); }
                if (selectedSources.includes(img.dataset.value)) { img.classList.remove('unselected') }
             });
                else { img.classList.add('unselected'); }
                });
 
             }, 100)
         });
         });



Revision as of 09:59, 9 June 2022

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