Widget: DCTList: Difference between revisions
From LINKS Community Center
Cschwentker (talk | contribs) (Update to local url) |
Eschmidt (talk | contribs) No edit summary |
||
Line 304: | Line 304: | ||
const filterState = {}; | const filterState = {}; | ||
const selectedFunctions = Array.from(document.querySelectorAll('#functions-filter input[type="checkbox"]:checked')).map(checkbox => checkbox.value); | const allFunctions = Array.from(document.querySelectorAll('#functions-filter input[type="checkbox"]')); | ||
console.log('ALL', allFunctions) | |||
const selectedFunctions = Array.from(document.querySelectorAll('#functions-filter input[type="checkbox"]:checked')) | |||
.map(checkbox => checkbox.value); | |||
filterState.functions = selectedFunctions; | filterState.functions = selectedFunctions; | ||
const selectedSources = Array.from(document.querySelectorAll('#data-source-filter input[type="checkbox"]:checked')).map(checkbox => checkbox.value); | const selectedSources = Array.from(document.querySelectorAll('#data-source-filter input[type="checkbox"]:checked')) | ||
.map(checkbox => checkbox.value); | |||
filterState.dataSources = selectedSources; | filterState.dataSources = selectedSources; | ||
Revision as of 15:45, 22 August 2022
Development verstion of the DCT List.
Not ready for production!