Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 401: | Line 401: | ||
// Mark data source images | // Mark data source images | ||
document.querySelectorAll('.data-sources-cell .data-source-img').forEach(img => { | document.querySelectorAll('.data-sources-cell .data-source-img').forEach(img => { | ||
if (selectedSources.includes(img.dataset.value)) { img.classList.remove('unselected'); } | if (!selectedSources || selectedSources.includes(img.dataset.value)) { img.classList.remove('unselected'); } | ||
else { img.classList.add('unselected'); } | else { img.classList.add('unselected'); } | ||
}); | }); | ||
Line 407: | Line 407: | ||
// Mark functions images | // Mark functions images | ||
document.querySelectorAll('.functions-cell .func-img').forEach(img => { | document.querySelectorAll('.functions-cell .func-img').forEach(img => { | ||
if (selectedFunctions.includes(img.dataset.value)) { img.classList.remove('unselected'); } | if (!selectedFunctions || selectedFunctions.includes(img.dataset.value)) { img.classList.remove('unselected'); } | ||
else { img.classList.add('unselected'); } | else { img.classList.add('unselected'); } | ||
}); | }); |
Revision as of 12:34, 20 June 2022
Development verstion of the DCT List.
Not ready for production!