From b35cbb8f94331c6ef24e093642025e8a7a9cd475 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 18 Jun 2015 14:59:42 -0400 Subject: [PATCH] Homepage calendar feed fixed; was replacing event info. --- footer.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/footer.php b/footer.php index 7272cf2..740fd05 100755 --- a/footer.php +++ b/footer.php @@ -58,14 +58,16 @@ jQuery(document).ready(function(){ jQuery(".top-bar > section > ul > li > a").attr('href','#'); jQuery(".left-off-canvas-menu > ul.off-canvas-list > div > ul > li > a:first-child").attr('href','#'); - if ($('.ai1ec-event-description').length > 0) { // it exists } - var str = "Curbside Recycling"; - var newhtml = $('.ai1ec-event-description').html().replace(str, '
' + str + ''); - $('.ai1ec-event-description').html(newhtml); - var str = "Drop-off Center"; - var newhtml = $('.ai1ec-event-description').html().replace(str, '' + str + ''); - $('.ai1ec-event-description').html(newhtml); - } + $('.ai1ec-event-description').each(function() { + if ($(this).length > 0) { // it exists } + var str = "Curbside Recycling"; + var newhtml = $(this).html().replace(str, '
' + str + ''); + $(this).html(newhtml); + var str = "Drop-off Center"; + var newhtml = $(this).html().replace(str, '' + str + ''); + $(this).html(newhtml); + } + }); }); - \ No newline at end of file + -- 2.17.1