summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/js/comment.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/js/comment.js b/modules/comment/js/comment.js
index 96370fb1..3f058062 100644
--- a/modules/comment/js/comment.js
+++ b/modules/comment/js/comment.js
@@ -32,7 +32,7 @@ function ajaxify_comment_form() {
$("#g-comments form").replaceWith(data.form);
ajaxify_comment_form();
}
- if (data.result == "success") {
+ if (data.result == "success" && data.resource) {
$.get(data.resource, function(data, textStatus) {
$("#g-comments .g-block-content ul:first").append("<li>"+data+"</li>");
$("#g-comments .g-block-content ul:first li:last").effect("highlight", {color: "#cfc"}, 8000);