From: David ‘Bombe’ Roden Date: Sun, 28 Nov 2010 20:18:58 +0000 (+0100) Subject: Always append new posts to the “posts” div. X-Git-Tag: 0.3.2-RC1~6 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=998958fbec4c4ae0aa1b856d031254b84523ab4c Always append new posts to the “posts” div. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index bc7d7ea..1944efe 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -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();