Skip to content

Commit

Permalink
Update config.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
alothemes committed Jul 10, 2020
1 parent 5ae78ac commit 975fa19
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,22 @@
imgLazy.lazyload();
imgLazy.on('load',function(){
var img = $(this);
if(img.hasClass( "loaded" )) return;
if(img.attr('src') == img.data('src')){img.addClass('loaded');}
else {img.lazyload();}
if($.equalheight) $.fn.equalheight();
});
if($.equalheight) $.fn.equalheight();});
$('body').on('contentUpdated', function () {$(this).find("img.lazyload").not(".loaded").lazyload();});
$('body').on('contentUpdated', function () {
var lazy = $(this).find("img.lazyload").not(".loaded").lazyload();
lazy.on('load',function(){
var img = $(this);
if(img.hasClass( "loaded" )) return;
if(img.attr('src') == img.data('src')){img.addClass('loaded');}
else {img.lazyload();}
if($.equalheight) $.fn.equalheight();
});
});
$('body').removeClass('loading_body');
});
</script>]]>
</body_includes>
Expand Down

0 comments on commit 975fa19

Please sign in to comment.