From: David ‘Bombe’ Roden Date: Thu, 13 Jan 2011 14:51:54 +0000 (+0100) Subject: Don’t show posts that are older than the last post on the page. X-Git-Tag: 0.3.7^2~3^2~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=68f60579b7f25d7768c1cbb7a60ebb40f306639a;p=Sone.git Don’t show posts that are older than the last post on the page. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index ca087fa..a3e79cd 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -735,8 +735,6 @@ function loadNewPost(postId, soneId, recipientId) { newPost = $(data.post.html).addClass("hidden"); if (firstOlderPost != null) { newPost.insertBefore(firstOlderPost); - } else { - $("#sone #posts").append(newPost); } ajaxifyPost(newPost); newPost.slideDown();