]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost-mobile/js/acl.js
Merge pull request #601 from fermionic/20130204-100-percent-CPU-usage-on-xmlify
[friendica.git] / view / theme / frost-mobile / js / acl.js
index 20f0d461895cc1898d8fd28c8def9b9d1798b0c8..d54df12a35eb57f50787b52a86599115939a06b9 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
-               $(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();
 }