app/assets/javascripts/lentil/imageerrors.js in lentil-0.3.1 vs app/assets/javascripts/lentil/imageerrors.js in lentil-0.4.0
- old
+ new
@@ -1,8 +1,8 @@
function addimageerrors() {
- $("img.instagram-img, img.battle-img, img.fancybox-img").on("error", function () {
+ $(".instagram-img, .battle-img, .fancybox-img").off("error").on("error", function () {
$(this).parents("div.image-tile, li.image-animate-tile").remove();
- if ($("body.images_animate") || $("body.images_staff_picks_animate")) {
+ /*if ($("body.images_animate") || $("body.images_staff_picks_animate")) {
addanimatedimages();
- }
+ }*/
});
-}
\ No newline at end of file
+}