diff options
Diffstat (limited to 'themes/default/js/comment.js')
-rw-r--r-- | themes/default/js/comment.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/themes/default/js/comment.js b/themes/default/js/comment.js index 5cb236e8..f88f21e5 100644 --- a/themes/default/js/comment.js +++ b/themes/default/js/comment.js @@ -8,11 +8,10 @@ function ajaxify_comment_form() { $("#gCommentForm").replaceWith(xhr.responseText); if (xhr.status == 201) { $.get(xhr.getResponseHeader("Location"), function(data, textStatus) { - $("#gComment div.gBlockContent ul:first").append(data); - $("#gComment div.gBlockContent ul:first li:last").hide().slideDown(); - } - ); - $("#gCommentForm").clearForm(); + $("#gComment div.gBlockContent ul:first").append(data); + $("#gComment div.gBlockContent ul:first li:last").hide().slideDown(); + }); + $("#gCommentForm").clearForm(); } ajaxify_comment_form(); } |