MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 10: Line 10:
    return list.width();
    return list.width();
}); // Store original widths in an array
}); // Store original widths in an array
   
    // Initial check to set the visibility based on the current state of filters
/*    updateFeaturedVisibility(); */
      
      
     // Insert the community featured element after the second card
     // Insert the community featured element after the second card
Line 404: Line 401:
}
}
/* function updateFeaturedVisibility() {
        var selectors = ['#list', '#list-list'];
        var allFiltersCleared = true; 
        selectors.forEach(function(selector) {
            if ($(selector + ' .filtered-value-option input[type="checkbox"]:checked').length > 0) {
                allFiltersCleared = false; // If any filter is checked, set to false
            }
        });
   
        if (allFiltersCleared) {
            communityFeatured.show();
        } else {
            communityFeatured.hide();
        }
    } */
   
// closeModal function
// closeModal function
function closeModal() {
function closeModal() {

Navigation menu