Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 347: | Line 347: | ||
} | } | ||
function | function deselectAll(context) { | ||
document.querySelectorAll(context + ' input[type="checkbox"]').forEach(checkbox => checkbox.checked = false); | document.querySelectorAll(context + ' input[type="checkbox"]').forEach(checkbox => checkbox.checked = false); | ||
applyFilters(); | applyFilters(); | ||
Line 363: | Line 363: | ||
<div class="filter-button-wrapper"> | <div class="filter-button-wrapper"> | ||
<button type="button" onclick="selectAll('#functions-filter')">Select all</button> | | <button type="button" onclick="selectAll('#functions-filter')">Select all</button> | | ||
<button type="button" onclick=" | <button type="button" onclick="deselectAll('#functions-filter')">Deselect all</button> | ||
</div> | </div> | ||
<div class="filter-content" id="functions-filter" ></div> | <div class="filter-content" id="functions-filter" ></div> | ||
Line 371: | Line 371: | ||
<div class="filter-button-wrapper"> | <div class="filter-button-wrapper"> | ||
<button type="button" onclick="selectAll('#data-source-filter')">Select all</button> | | <button type="button" onclick="selectAll('#data-source-filter')">Select all</button> | | ||
<button type="button" onclick=" | <button type="button" onclick="deselectAll('#data-source-filter')">Deselect all</button> | ||
</div> | </div> | ||
<div class="filter-content" id="data-source-filter"></div> | <div class="filter-content" id="data-source-filter"></div> |
Revision as of 16:01, 13 June 2022
Development verstion of the DCT List.
Not ready for production!