Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
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 for="${identifier}" title="${fnInfo[DESC_KEY]}"><img src="${fnImages[fnCat]}"> ${fnCat}</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;
                    // if (checkedSubs > 0) { category.checked = true; } else { category.checked = false; }
 
 
                 }
 
                 }
  

Revision as of 14:44, 27 March 2023

Current version of the DCT List.
Not ready for production!