From 7e4a3059462e0b1b379916a1d98fe5f43f2ee08c Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 29 Jul 2016 12:38:13 -0400 Subject: [PATCH] removing front page events img element after it is wrapped with a div that has a background of the same image src --- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index fc97b1f..da0f2b9 100644 --- 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("
"); - $(this).find('img').css("height", "0").css("width", "0px"); + $(this).find('img').remove(); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 7c5d319..11cd467 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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("
"); - $(this).find('img').css("height", "0").css("width", "0px"); + $(this).find('img').remove(); }); -- 2.17.1