removing front page events img element after it is wrapped with a div that has a...
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 29 Jul 2016 16:38:13 +0000 (12:38 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 29 Jul 2016 16:38:13 +0000 (12:38 -0400)
js/app.js
js/custom/pageSetup.js

index fc97b1f..da0f2b9 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -108,7 +108,7 @@ $(document).ready(function () {
      $(event_feed).find("div").each( function () {
         var img_src = $(this).find("img").attr('src');
         $(this).find('img').wrap("<div style='background: url(" + img_src + ") no-repeat center center;background-size: cover;' class='image-container'></div>");
-        $(this).find('img').css("height", "0").css("width", "0px");
+        $(this).find('img').remove();
 
     });
     
index 7c5d319..11cd467 100644 (file)
@@ -99,7 +99,7 @@ $(document).ready(function () {
      $(event_feed).find("div").each( function () {
         var img_src = $(this).find("img").attr('src');
         $(this).find('img').wrap("<div style='background: url(" + img_src + ") no-repeat center center;background-size: cover;' class='image-container'></div>");
-        $(this).find('img').css("height", "0").css("width", "0px");
+        $(this).find('img').remove();
 
     });