Homepage calendar feed fixed; was replacing event info.
authorLaury GvR <laury@gaslightmedia.com>
Thu, 18 Jun 2015 18:59:42 +0000 (14:59 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 18 Jun 2015 18:59:42 +0000 (14:59 -0400)
footer.php

index 7272cf2..740fd05 100755 (executable)
         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, '<br><b>' + str + '</b>');
-                $('.ai1ec-event-description').html(newhtml);
-                var str = "Drop-off Center";
-                var newhtml = $('.ai1ec-event-description').html().replace(str, '<b>' + str + '</b>');
-                $('.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, '<br><b>' + str + '</b>');
+                    $(this).html(newhtml);
+                    var str = "Drop-off Center";
+                    var newhtml = $(this).html().replace(str, '<b>' + str + '</b>');
+                    $(this).html(newhtml);
+                }
+            });
         });
     </script>
-</html>
\ No newline at end of file
+</html>