]> git.mxchange.org Git - friendica.git/blobdiff - js/acl.js
Don't replace data-src with src in acl-template
[friendica.git] / js / acl.js
index 36cf74970fbac1e83df66fa67da46f4d0711040c..35342a5c14ad52891708f2cec9e119f7d61507f5 100644 (file)
--- 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[rel!=acl-template] img[data-src]").each(function(i, el){
+               // Add data-src attribute with src attribute for every image
                $(el).attr('src', $(el).data("src"));
-               $(el).removeAttr("data-src");
        });
        that.update_view();
 }