From: Fabrixxm <fabrix.xm@gmail.com>
Date: Thu, 30 Jul 2015 13:27:36 +0000 (+0200)
Subject: catch comment format button also after ajax update
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b6199bb520cad12aaff04afe2279e0a0859ef909;p=friendica.git

catch comment format button also after ajax update
---

diff --git a/js/main.js b/js/main.js
index 53af791d91..e1e852cbaf 100644
--- a/js/main.js
+++ b/js/main.js
@@ -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');