summaryrefslogtreecommitdiff
path: root/static/website/js/thread-user.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/website/js/thread-user.js')
-rw-r--r--static/website/js/thread-user.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/static/website/js/thread-user.js b/static/website/js/thread-user.js
index 1c43342..0dd0e89 100644
--- a/static/website/js/thread-user.js
+++ b/static/website/js/thread-user.js
@@ -224,6 +224,7 @@ $(document).ready(function() {
$comment_edit.click(function(e) {
var target = $(this).data("target");
+
commentNicEditor.addInstance(target);
$(this).parents("div.comment").prepend($commentPanelWrapper);
$commentPanelWrapper.show();
@@ -277,6 +278,7 @@ $(document).ready(function() {
var target = $(this).data("target");
$("#"+target).show();
+
nics[target] = new nicEditor({
buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image', 'link'],
iconsPath: "/static/website/js/nicEditorIcons.gif",
@@ -290,6 +292,7 @@ $(document).ready(function() {
$(this).siblings(".add-comment").show();
var target = $(this).data("target");
+
nics[target].removeInstance(target);
nics[target] = null;
$("#"+target).hide();
@@ -298,6 +301,7 @@ $(document).ready(function() {
$post_comment.click(function(e) {
var target = $(this).data("target");
+
var answer_id = $(this).data("aid");
var form = $(this).data("form");
$form = $("#"+form);