summaryrefslogtreecommitdiff
path: root/modules/comment/js/comment.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/js/comment.js')
-rw-r--r--modules/comment/js/comment.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/comment/js/comment.js b/modules/comment/js/comment.js
index bff83770..6e985626 100644
--- a/modules/comment/js/comment.js
+++ b/modules/comment/js/comment.js
@@ -10,6 +10,18 @@ $("document").ready(function() {
});
}
});
+ $("#gNoComments").click(function(event) {
+ event.preventDefault();
+ if (!$("#gAddCommentForm").length) {
+ $.get($(this).attr("href"),
+ {},
+ function(data) {
+ $("#gCommentDetail").append(data);
+ ajaxify_comment_form();
+ });
+ $("#gNoCommentsYet").remove();
+ }
+ });
});
function ajaxify_comment_form() {