X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Facl.js;h=9c55842fdcdeff798677be86ebc2864f5ad570a7;hb=cd0bdd7dd2865c87f14fecb66ce059541a41a427;hp=b57a92546203b2f98162d1b5cab8c9ef59efc9f6;hpb=ad5a47aecfe843199c50fb394cca6a77d5c12f3d;p=friendica.git diff --git a/js/acl.js b/js/acl.js index b57a925462..9c55842fdc 100644 --- a/js/acl.js +++ b/js/acl.js @@ -22,8 +22,8 @@ function ACL(backend_url, preset, automention){ /*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); @@ -36,7 +36,7 @@ function ACL(backend_url, preset, automention){ } ACL.prototype.remove_mention = function(id) { - if (!that.aclautomention) return; + if (!that.automention) return; var nick = that.data[id].nick; var searchText = "@"+nick+"+"+id+" "; if (tinyMCE.activeEditor===null) { @@ -54,7 +54,7 @@ ACL.prototype.remove_mention = function(id) { } ACL.prototype.add_mention = function(id) { - if (!that.aclautomention) return; + if (!that.automention) return; var nick = that.data[id].nick; var searchText = "@"+nick+"+"+id+" "; if (tinyMCE.activeEditor===null) {