X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrost-mobile%2Fjs%2Facl.js;h=d54df12a35eb57f50787b52a86599115939a06b9;hb=a0e18a0ff8fbefaf5cb66a4d5c91fac1d45d5931;hp=20f0d461895cc1898d8fd28c8def9b9d1798b0c8;hpb=c5845be74edd2e48d743772c3dd31e6ad5c2a25e;p=friendica.git diff --git a/view/theme/frost-mobile/js/acl.js b/view/theme/frost-mobile/js/acl.js index 20f0d46189..d54df12a35 100644 --- a/view/theme/frost-mobile/js/acl.js +++ b/view/theme/frost-mobile/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 - $(el).attr('src', $(el).data("src")); - $(el).removeAttr("data-src"); + $j(".acl-list-item img[data-src]", that.list_content).each(function(i, el){ + // Add src attribute for images with a data-src attribute + $j(el).attr('src', $j(el).data("src")); }); that.update_view(); }