Always append new posts to the “posts” div.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 28 Nov 2010 20:18:58 +0000 (21:18 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 28 Nov 2010 20:18:58 +0000 (21:18 +0100)
src/main/resources/static/javascript/sone.js

index bc7d7ea..1944efe 100644 (file)
@@ -694,7 +694,7 @@ function loadNewPost(postId) {
                        if (firstOlderPost != null) {
                                newPost.insertBefore(firstOlderPost);
                        } else {
-                               $("#sone .post:last").append(newPost);
+                               $("#sone #posts").append(newPost);
                        }
                        ajaxifyPost(newPost);
                        newPost.slideDown();