]> git.mxchange.org Git - friendica.git/commitdiff
catch comment format button also after ajax update
authorFabrixxm <fabrix.xm@gmail.com>
Thu, 30 Jul 2015 13:27:36 +0000 (15:27 +0200)
committerFabrixxm <fabrix.xm@gmail.com>
Thu, 30 Jul 2015 13:27:36 +0000 (15:27 +0200)
js/main.js

index 53af791d914235680eddf975d43957e1d9191ff1..e1e852cbaf655935fce69142f87ca02c642e5c86 100644 (file)
@@ -58,7 +58,7 @@
                 *              data-bbcode="<string>" : name of the bbcode element to insert. insertFormatting() will insert it as "[name][/name]"
                 *              data-id="<string>" : id of the comment, used to find other comment-related element, like the textarea
                 * */           
-               $('[data-role="insert-formatting"]').on('click', function(e) {
+               $('body').on('click','[data-role="insert-formatting"]', function(e) {
                        e.preventDefault();
                        var o = $(this);
                        var comment = o.data('comment');