MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 301: Line 301:
         // Revert width of filtered-list-items in #list
         // Revert width of filtered-list-items in #list
    filteredListItems.css('width', 'calc(20% - 0px)');
    filteredListItems.css('width', 'calc(20% - 0px)');
    // Check if filters are cleared before showing the featured content
    checkBlockFiltersCleared();
    checkListFiltersCleared();
}
}


Line 586: Line 582:
     });
     });


    function logTitlesForEntity(entityValue) {
function logTitlesForEntity(entityValue) {
         $('.card').each(function() {
         $('.card').each(function() {
             var entityText = $(this).find('.entity').text().trim();
             var entityText = $(this).find('.entity').text().trim();
Line 599: Line 595:
     // Call the function to log titles for cards with the entity "Collective"
     // Call the function to log titles for cards with the entity "Collective"
     logTitlesForEntity('Collective');
     logTitlesForEntity('Collective');
   
});
});

Navigation menu