//console.log(html);
that.list_content.append(html);
});
- $(".acl-list-item img[data-src]").each(function(i, el){
- // Replace data-src attribute with src attribute for every image
- $(el).attr('src', $(el).data("src"));
- $(el).removeAttr("data-src");
+ $j(".acl-list-item img[data-src]", that.list_content).each(function(i, el){
+ // Add src attribute for images with a data-src attribute
+ $j(el).attr('src', $j(el).data("src"));
});
that.update_view();
}