diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-01-10 11:34:37 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-01-10 11:34:37 +0100 |
commit | d6ff8dc9b67b8bc80e6f5f4f1bc35c14a284ebd2 (patch) | |
tree | 0639186cb20696c799d23204d431d3e477e58edc /view/js/acl.js | |
parent | ef7225b4f68ce032184e73b4af7444c90d1109a5 (diff) | |
download | volse-hubzilla-d6ff8dc9b67b8bc80e6f5f4f1bc35c14a284ebd2.tar.gz volse-hubzilla-d6ff8dc9b67b8bc80e6f5f4f1bc35c14a284ebd2.tar.bz2 volse-hubzilla-d6ff8dc9b67b8bc80e6f5f4f1bc35c14a284ebd2.zip |
introduce datasrc2src(selector) js function
Diffstat (limited to 'view/js/acl.js')
-rw-r--r-- | view/js/acl.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/view/js/acl.js b/view/js/acl.js index 6042b43ca..c8f7c7180 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -173,11 +173,7 @@ 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"); - }); + datasrc2src('#acl-list-content .acl-list-item img[data-src]'); that.update_view('custom'); that.on_submit(); |