X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Facl.js;h=fc6a6c0c1d4cb6283c89aef98cd0d1720fa701ba;hb=edf8bde58107afbb8a2395ac8021a4dbcc73cd5f;hp=4f43252847ff6ae9ef487aff5583fad0f2d572c4;hpb=239110a2bc1744418a58d06914a3ff652c7470df;p=friendica.git diff --git a/js/acl.js b/js/acl.js index 4f43252847..fc6a6c0c1d 100644 --- a/js/acl.js +++ b/js/acl.js @@ -247,12 +247,16 @@ ACL.prototype.populate = function(data){ var height = Math.ceil(data.tot / that.nw) * 42; that.list_content.height(height); $(data.items).each(function(){ - html = "

{1}

"+that.item_tpl+"
"; - html = html.format( this.photo, this.name, this.type, this.id, '', this.network, this.link ); + html = "
"+that.item_tpl+"
"; + 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 img[data-src]", that.list_content).each(function(i, el){ + // Add src attribute for images with a data-src attribute + $(el).attr('src', $(el).data("src")); + }); that.update_view(); }