]> git.mxchange.org Git - friendica.git/blobdiff - js/acl.js
Complete oStatus conversations: Changed from file_get_contents to fetch_url
[friendica.git] / js / acl.js
index e383224ca8aba067bd952b59e0f04e089b67a314..fc6a6c0c1d4cb6283c89aef98cd0d1720fa701ba 100644 (file)
--- a/js/acl.js
+++ b/js/acl.js
@@ -248,11 +248,15 @@ ACL.prototype.populate = function(data){
        that.list_content.height(height);
        $(data.items).each(function(){
                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 );
+               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();
 }