]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost/js/acl.js
Merge pull request #593 from fermionic/20130127-tinymce-update-and-fixes
[friendica.git] / view / theme / frost / js / acl.js
index 2ea559636ba41bdd2f8ab7d4da42bad19172328e..511f84f784145619c7265e5f5d63d36f8a652b23 100644 (file)
@@ -11,7 +11,7 @@ function ACL(backend_url, preset){
        that.deny_cid  = (preset[2] || []);
        that.deny_gid  = (preset[3] || []);
        that.group_uids = [];
-       that.nw = 4; //items per row. should be calulated from #acl-list.width
+       that.nw = 3; //items per row. should be calulated from #acl-list.width
        
        that.list_content = $j("#acl-list-content");
        that.item_tpl = unescape($j(".acl-list-item[rel=acl-template]").html());
@@ -253,6 +253,10 @@ ACL.prototype.populate = function(data){
                //console.log(html);
                that.list_content.append(html);
        });
+       $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();
 }