catch comment format button also after ajax update
This commit is contained in:
parent
b7aa259c67
commit
b6199bb520
|
@ -58,7 +58,7 @@
|
||||||
* data-bbcode="<string>" : name of the bbcode element to insert. insertFormatting() will insert it as "[name][/name]"
|
* 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-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();
|
e.preventDefault();
|
||||||
var o = $(this);
|
var o = $(this);
|
||||||
var comment = o.data('comment');
|
var comment = o.data('comment');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user