File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 2323 imgLazy.lazyload();
2424 imgLazy.on('load',function(){
2525 var img = $(this);
26+ if(img.hasClass( "loaded" )) return;
2627 if(img.attr('src') == img.data('src')){img.addClass('loaded');}
2728 else {img.lazyload();}
2829 if($.equalheight) $.fn.equalheight();
2930 });
30- if($.equalheight) $.fn.equalheight();});
31- $('body').on('contentUpdated', function () {$(this).find("img.lazyload").not(".loaded").lazyload();});
31+ $('body').on('contentUpdated', function () {
32+ var lazy = $(this).find("img.lazyload").not(".loaded").lazyload();
33+ lazy.on('load',function(){
34+ var img = $(this);
35+ if(img.hasClass( "loaded" )) return;
36+ if(img.attr('src') == img.data('src')){img.addClass('loaded');}
37+ else {img.lazyload();}
38+ if($.equalheight) $.fn.equalheight();
39+ });
40+ });
41+ $('body').removeClass('loading_body');
3242 });
3343 </script>]]>
3444 </body_includes >
You can’t perform that action at this time.
0 commit comments