4,163
edits
No edit summary |
No edit summary |
||
Line 60: | Line 60: | ||
}); | }); | ||
// Format paragraphs | |||
function formatParagraphs(text) { | function formatParagraphs(text) { | ||
var paragraphs = text.split('\n').filter(function (p) { return p.trim() !== '' }); | var paragraphs = text.split('\n').filter(function (p) { return p.trim() !== '' }); | ||
Line 70: | Line 70: | ||
formatCommunityCardDescriptions(); | formatCommunityCardDescriptions(); | ||
} | } | ||
function formatCommunityCardDescriptions() { | function formatCommunityCardDescriptions() { | ||
console.log("Formatting community card descriptions"); | console.log("Formatting community card descriptions"); | ||
Line 96: | Line 96: | ||
var filtersDiv = $('.filtered-filters'); | var filtersDiv = $('.filtered-filters'); | ||
// Open and Close button for filters | |||
if (toggleButton.length && filtersDiv.length) { | if (toggleButton.length && filtersDiv.length) { | ||
toggleButton.on('click', function(event) { | toggleButton.on('click', function(event) { | ||
event.preventDefault(); | event.preventDefault(); | ||
Line 113: | Line 112: | ||
} | } | ||
}); | }); | ||
} | |||
} | |||
$('.button-open-nrs').click(function() { | $('.button-open-nrs').click(function() { |