Skip to content

Instantly share code, notes, and snippets.

@dawehner
Created May 11, 2009 20:20
Show Gist options
  • Save dawehner/110160 to your computer and use it in GitHub Desktop.
Save dawehner/110160 to your computer and use it in GitHub Desktop.
diff --git a/.ajax_comments.js.swp b/.ajax_comments.js.swp
index 88e820c..8213005 100644
Binary files a/.ajax_comments.js.swp and b/.ajax_comments.js.swp differ
diff --git a/ajax_comments.js b/ajax_comments.js
index b9cdfc8..094bfd5 100644
--- a/ajax_comments.js
+++ b/ajax_comments.js
@@ -586,7 +586,7 @@ function ajax_comments_hide_progress(context) {
function insert_new_comment(comment) {
if ($('#comment-form-content').attr('cid') == 0) {
- $('#comment-preview').before(comment);
+ $('#comments').append(comment);
}
else {
if ($('#comment-form-content').next().is('.indented')) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment