]> git.mxchange.org Git - friendica.git/commitdiff
bug fix: live function is deprecated
authorhauke <hauke@grlg.org>
Mon, 15 Sep 2014 17:48:17 +0000 (19:48 +0200)
committerhauke <hauke@grlg.org>
Mon, 15 Sep 2014 17:48:17 +0000 (19:48 +0200)
view/theme/frost-mobile/js/acl.js

index c3b6092f30050fe4811b5942d30bc0f832160ba1..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);