From: David ‘Bombe’ Roden Date: Fri, 26 Nov 2010 23:07:21 +0000 (+0100) Subject: Insert post after the last post. X-Git-Tag: 0.3.1~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=baab11d2dcb67dd8f6e6b0e71a8bfac4cfaa791a;p=Sone.git Insert post after the last post. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index f3ea9e8..7482138 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -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();