4,209
edits
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
var originalWidths = listLists.map(function(list) { | var originalWidths = listLists.map(function(list) { | ||
return list.width(); | return list.width(); | ||
}); | }); | ||
// Insert the community featured element after the second card | // Insert the community featured element after the second card | ||
Line 17: | Line 17: | ||
communityFeatured.show(); | communityFeatured.show(); | ||
} | } | ||
// Check if the specific element exists on the page | // Check if the specific element exists on the page | ||
Line 71: | Line 66: | ||
} | } | ||
// Format community card, when in the Community Entries page | |||
if ($('.community-card').length) { | |||
formatCommunityCardDescriptions(); | |||
} | |||
function formatCommunityCardDescriptions() { | function formatCommunityCardDescriptions() { | ||
console.log("Formatting community card descriptions"); | console.log("Formatting community card descriptions"); |