X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=view%2Ftheme%2Ffrost%2Fjs%2Facl.js;h=1c843d7fe383b669e6141ca1d68bcba9ac64194a;hb=2943550fe289c67cbb1fcb50afa79ac2460a929d;hp=2ea559636ba41bdd2f8ab7d4da42bad19172328e;hpb=04c31d194f07e3b7a39ab7c8d5690da840c11fb7;p=friendica.git diff --git a/view/theme/frost/js/acl.js b/view/theme/frost/js/acl.js index 2ea559636b..1c843d7fe3 100644 --- a/view/theme/frost/js/acl.js +++ b/view/theme/frost/js/acl.js @@ -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(); }