/* var height = Math.ceil(data.tot / that.nw) * 42;
that.list_content.height(height);*/
$j(data.items).each(function(){
- html = "<div class='acl-list-item {4} {5}' title='{6}' id='{2}{3}'><img src='{0}'/><p>{1}</p>"+that.item_tpl+"</div>";
+ html = "<div class='acl-list-item {4} {5}' title='{6}' id='{2}{3}'>"+that.item_tpl+"</div>";
html = html.format( this.photo, this.name, this.type, this.id, '', this.network, this.link );
if (this.uids!=undefined) that.group_uids[this.id] = this.uids;
//console.log(html);
that.list_content.append(html);
});
+ $(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
+ // Add src attribute for images with a data-src attribute
+ $(el).attr('src', $(el).data("src"));
+ });
that.update_view();
}