MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tags: Manual revert Reverted
Line 19: Line 19:
      
      
     if (communityFeatured.length && filteredCards.length >= 2) {
     if (communityFeatured.length && filteredCards.length >= 2) {
         communityFeatured.detach().insertAfter(filteredCards.eq(1));
        // Detach and insert the community featured element after the second card
         communityFeatured.detach();
        filteredCards.eq(1).after(communityFeatured);
 
        // Show the community-featured element after positioning it
        communityFeatured.show();
     }
     }


Line 28: Line 33:


     if (communityListFeatured.length && filteredCards.length >= 4) {
     if (communityListFeatured.length && filteredCards.length >= 4) {
         communityListFeatured.detach().insertAfter(filteredCards.eq(3));
        // Detach and insert the community featured element after the second card
         communityListFeatured.detach();
        filteredCards.eq(3).after(communityListFeatured);
 
        // Show the community-featured element after positioning it
        communityListFeatured.show();
     }
     }
      
      

Navigation menu