4,396
edits
No edit summary Tag: Manual revert |
No edit summary |
||
Line 15: | Line 15: | ||
updateFeaturedVisibility(); | updateFeaturedVisibility(); | ||
// Insert the community featured element after the second card | |||
if (communityFeatured.length && filteredCards.length >= 2) { | if (communityFeatured.length && filteredCards.length >= 2) { | ||
communityFeatured.detach(); | communityFeatured.detach(); | ||
filteredCards.eq(1).after(communityFeatured); | filteredCards.eq(1).after(communityFeatured); | ||
communityFeatured.show(); | communityFeatured.show(); | ||
} | } | ||
// | // Format community card, when in the Community Entries page | ||
if ($('.community-card').length) { | if ($('.community-card').length) { | ||
formatCommunityCardDescriptions(); | formatCommunityCardDescriptions(); | ||
} | } | ||
// Check if the specific element exists on the page | // Check if the specific element exists on the page |