]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost/js/acl.js
No need to remove data-src attributes
[friendica.git] / view / theme / frost / js / acl.js
index 2ea559636ba41bdd2f8ab7d4da42bad19172328e..1c843d7fe383b669e6141ca1d68bcba9ac64194a 100644 (file)
@@ -11,7 +11,7 @@ function ACL(backend_url, preset){
        that.deny_cid  = (preset[2] || []);
        that.deny_gid  = (preset[3] || []);
        that.group_uids = [];
-       that.nw = 4; //items per row. should be calulated from #acl-list.width
+       that.nw = 3; //items per row. should be calulated from #acl-list.width
        
        that.list_content = $j("#acl-list-content");
        that.item_tpl = unescape($j(".acl-list-item[rel=acl-template]").html());
@@ -253,6 +253,10 @@ ACL.prototype.populate = function(data){
                //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();
 }