]> 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 20f0d461895cc1898d8fd28c8def9b9d1798b0c8..4e319577f78b80f2aca06b4ae80e8372920c8f78 100644 (file)
@@ -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[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"));
-               $(el).removeAttr("data-src");
        });
        that.update_view();
 }