Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 500: Line 500:
             Array.from(functionsData).forEach(([fnCat, fnInfo], index) => {
             Array.from(functionsData).forEach(([fnCat, fnInfo], index) => {
                 const identifier = 'func-filter-' + escapeAttr(fnCat);
                 const identifier = 'func-filter-' + escapeAttr(fnCat);
                 funcFilterHtml +=
                 funcFilterHtml += (index < 4)
                     // We are temporarily removing checkboxes for function categories until their semantics are figured out
                    ?
                     // Disable the selection of categories with subfunctions, as it is not clear how their semantics should work
                     // Removing the for-property for the label as well to prevent activating the checkbox
                     // Removing the for-property for the label as well to prevent activating the checkbox
                     `<div class="func-filter-block">
                     `<div class="func-filter-block">
Line 507: Line 508:
                             <input type="checkbox" id="${identifier}" value="${fnCat}" class="func-cat" style="display:none;">
                             <input type="checkbox" id="${identifier}" value="${fnCat}" class="func-cat" style="display:none;">
                             <label title="${fnInfo[DESC_KEY]}"><img src="${fnImages[fnCat]}"> ${fnCat}</label>
                             <label title="${fnInfo[DESC_KEY]}"><img src="${fnImages[fnCat]}"> ${fnCat}</label>
                         </div>`;
                         </div>`
                    :
                    // The following is the original. TODO: This should be cleared up when all categories have subfunctions
                    `<div class="func-filter-block">
                        <div>
                            <input type="checkbox" id="${identifier}" value="${fnCat}" class="func-cat">
                            <label for="${identifier}" title="${fnInfo[DESC_KEY]}"><img src="${fnImages[fnCat]}"> ${fnCat}</label>
                        </div>`


                 // add subfunctions  
                 // add subfunctions  

Revision as of 13:49, 27 March 2023

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