X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Facl.js;h=fc6a6c0c1d4cb6283c89aef98cd0d1720fa701ba;hb=edf8bde58107afbb8a2395ac8021a4dbcc73cd5f;hp=36cf74970fbac1e83df66fa67da46f4d0711040c;hpb=405f37b7ae86e61c0f7977d10608d55a2b6acf33;p=friendica.git diff --git a/js/acl.js b/js/acl.js index 36cf74970f..fc6a6c0c1d 100644 --- a/js/acl.js +++ b/js/acl.js @@ -253,10 +253,9 @@ ACL.prototype.populate = function(data){ //console.log(html); that.list_content.append(html); }); - $(".acl-list-item img[data-src]").each(function(i, el){ - // Replace data-src attribute with src attribute for every image + $(".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")); - $(el).removeAttr("data-src"); }); that.update_view(); }