Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 501: | Line 501: | ||
const identifier = 'func-filter-' + escapeAttr(fnCat); | const identifier = 'func-filter-' + escapeAttr(fnCat); | ||
funcFilterHtml += | funcFilterHtml += | ||
// We are temporarily removing checkboxes for function categories until their semantics are figured out | |||
// Removing the for-property for the label as well to prevent activating the checkbox | |||
`<div class="func-filter-block"> | `<div class="func-filter-block"> | ||
<div> | <div> | ||
<input type="checkbox" id="${identifier}" value="${fnCat}" class="func-cat"> | <input type="checkbox" id="${identifier}" value="${fnCat}" class="func-cat" style="display:none;"> | ||
<label | <label title="${fnInfo[DESC_KEY]}"><img src="${fnImages[fnCat]}"> ${fnCat}</label> | ||
</div>`; | </div>`; | ||
Line 769: | Line 771: | ||
const checkedSubs = Array.from(subfunctions).filter(sub => sub.checked).length; | const checkedSubs = Array.from(subfunctions).filter(sub => sub.checked).length; | ||
category.checked = checkedSubs > 0; | category.checked = checkedSubs > 0; | ||
} | } | ||
Revision as of 13:44, 27 March 2023
Current version of the DCT List.
Not ready for production!