aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/acl.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-29 11:35:13 +0100
committerMario Vavti <mario@mariovavti.com>2017-11-29 11:35:13 +0100
commitb1f82257e80a2d015c7468ed62cdb2ba6668d6ea (patch)
tree7ff2cb18e8638266c32838be93574196b11a058e /view/js/acl.js
parentbc0f4b4fa5dc80f314eb72256c17051b66ba3979 (diff)
downloadvolse-hubzilla-b1f82257e80a2d015c7468ed62cdb2ba6668d6ea.tar.gz
volse-hubzilla-b1f82257e80a2d015c7468ed62cdb2ba6668d6ea.tar.bz2
volse-hubzilla-b1f82257e80a2d015c7468ed62cdb2ba6668d6ea.zip
load the profile images in the custom acl selector only if we actually need them
Diffstat (limited to 'view/js/acl.js')
-rw-r--r--view/js/acl.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/view/js/acl.js b/view/js/acl.js
index e016158e9..6042b43ca 100644
--- a/view/js/acl.js
+++ b/view/js/acl.js
@@ -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");
- });
};