]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost-mobile/js/acl.js
bug fix: live function is deprecated
[friendica.git] / view / theme / frost-mobile / js / acl.js
index a2fb06262d45c61f299f08e1b6fc683af8683163..4ce8b869c317304732744702fe85593f28dd8801 100644 (file)
@@ -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();
 }