From b6199bb520cad12aaff04afe2279e0a0859ef909 Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Thu, 30 Jul 2015 15:27:36 +0200 Subject: [PATCH] catch comment format button also after ajax update --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 53af791d9..e1e852cba 100644 --- a/js/main.js +++ b/js/main.js @@ -58,7 +58,7 @@ * data-bbcode="" : name of the bbcode element to insert. insertFormatting() will insert it as "[name][/name]" * data-id="" : 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');