Insert post after the last post.
[Sone.git] / src / main / resources / static / javascript / sone.js
index f3ea9e8..7482138 100644 (file)
@@ -664,7 +664,7 @@ function loadNewPost(postId) {
                        if (firstOlderPost != null) {
                                newPost.insertBefore(firstOlderPost);
                        } else {
-                               $("#sone #posts").append(newPost);
+                               $("#sone .post:last").append(newPost);
                        }
                        ajaxifyPost(newPost);
                        newPost.slideDown();