remove srcset attr
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 28 Jun 2016 17:04:30 +0000 (13:04 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 28 Jun 2016 17:04:30 +0000 (13:04 -0400)
js/app.js
js/custom/pageSetup.js

index 1d99849..887f255 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -90,7 +90,7 @@ $(document).ready(function () {
         console.debug(img_src);
         $(this).css("height", 175).css("width", 'auto');
         $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover");
-        $(this).removeAttr("src");
+        $(this).removeAttr("src").removeAttr("srcset");
     });
     
 });
index 1a1e334..505007d 100644 (file)
@@ -81,7 +81,7 @@ $(document).ready(function () {
         console.debug(img_src);
         $(this).css("height", 175).css("width", 'auto');
         $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover");
-        $(this).removeAttr("src");
+        $(this).removeAttr("src").removeAttr("srcset");
     });
     
 });