- var height = Math.ceil(data.tot / that.nw) * 42;
- that.list_content.height(height);
- that.data = {};
- $(data.items).each(function(){
- html = "<div class='acl-list-item {4} {5} type{2}' title='{6}' id='{2}{3}'>"+that.item_tpl+"</div>";
- html = html.format(this.photo, this.name, this.type, this.id, (this.forum=='1'?'forum':''), this.network, this.link);
- if (this.uids!=undefined) that.group_uids[this.id] = this.uids;
- //console.log(html);
- that.list_content.append(html);
- that.data[this.id] = this;
- });
- $(".acl-list-item img[data-src]", that.list_content).each(function(i, el){
+ var height = Math.ceil(data.tot / this.nw) * 42;
+ this.list_content.height(height);
+ this.data = {};
+ $(data.items).each(function(index, item){
+ html = "<div class='acl-list-item {4} {5} type{2}' title='{6}' id='{2}{3}'>"+this.item_tpl+"</div>";
+ html = html.format(item.photo, item.name, item.type, item.id, (item.forum=='1'?'forum':''), item.network, item.link);
+ if (item.uids!=undefined) this.group_uids[item.id] = item.uids;
+
+ this.list_content.append(html);
+ this.data[item.id] = item;
+ }.bind(this));
+ $(".acl-list-item img[data-src]", this.list_content).each(function(i, el){