load the profile images in the custom acl selector only if we actually need them

This commit is contained in:
Mario Vavti 2017-11-29 11:35:13 +01:00
parent bc0f4b4fa5
commit b1f82257e8

View File

@ -173,6 +173,12 @@ ACL.prototype.on_custom = function(event) {
that.deny_cid = [];
that.deny_gid = [];
$("#acl-list-content .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");
});
that.update_view('custom');
that.on_submit();
@ -408,10 +414,4 @@ ACL.prototype.populate = function(data) {
}
that.list_content.append(html);
});
$("#acl-list-content .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");
});
};