]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost-mobile/js/acl.js
No need to remove data-src attributes
[friendica.git] / view / theme / frost-mobile / js / acl.js
index 6feded6ab4b7e5bcb9a3a2aa07f217eac68513d8..4e319577f78b80f2aca06b4ae80e8372920c8f78 100644 (file)
@@ -247,12 +247,16 @@ ACL.prototype.populate = function(data){
 /*     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();
 }