X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrost-mobile%2Fjs%2Facl.js;h=4ce8b869c317304732744702fe85593f28dd8801;hb=76535578ba1a2a3ad23db00b3010fec859b3b573;hp=a2fb06262d45c61f299f08e1b6fc683af8683163;hpb=d0724812eef9c97218f51630e876be098fe15210;p=friendica.git diff --git a/view/theme/frost-mobile/js/acl.js b/view/theme/frost-mobile/js/acl.js index a2fb06262d..4ce8b869c3 100644 --- a/view/theme/frost-mobile/js/acl.js +++ b/view/theme/frost-mobile/js/acl.js @@ -21,8 +21,8 @@ function ACL(backend_url, preset){ /*events*/ that.showall.click(that.on_showall); - $(".acl-button-show").live('click', that.on_button_show); - $(".acl-button-hide").live('click', that.on_button_hide); + $(document).on("click", ".acl-button-show", that.on_button_show); + $(document).on("click", ".acl-button-hide", that.on_button_hide); $("#acl-search").keypress(that.on_search); $("#acl-wrapper").parents("form").submit(that.on_submit); @@ -160,7 +160,7 @@ ACL.prototype.update_view = function(){ $('#jot-public').show(); $('.profile-jot-net input').attr('disabled', false); if(typeof editor != 'undefined' && editor != false) { - $('#profile-jot-desc').html(ispublic); + $('#profile-jot-desc').html(window.isPublic); } } else { @@ -253,6 +253,10 @@ ACL.prototype.populate = function(data){ //console.log(html); that.list_content.append(html); }); + $(".acl-list-item img[data-src]", that.list_content).each(function(i, el){ + // Add src attribute for images with a data-src attribute + $(el).attr('src', $(el).data("src")); + }); that.update_view(); }