X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Facl.js;h=487ffafc770032578f1437bd84db44e9b39c77c8;hb=275f7b26604af74aa57f7a4a758735e6bc2ab928;hp=eeea6a2938338f65417c57a08b9286a5abf95f73;hpb=e97a579856ba4d733d61005d9f241b3b81d703cd;p=friendica.git diff --git a/js/acl.js b/js/acl.js index eeea6a2938..487ffafc77 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); @@ -62,7 +62,7 @@ ACL.prototype.add_mention = function(id) { that.element.val( searchText + that.element.val() ); } else { if ( tinyMCE.activeEditor.getContent({format : 'raw'}).search(searchText) >= 0 ) return; - tinyMCE.activeEditor.dom.add(tinyMCE.activeEditor.getBody(), 'span', {}, searchText); + tinyMCE.activeEditor.dom.add(tinyMCE.activeEditor.getBody(), 'dummy', {}, searchText); } }