$.getJSON("ajax/getPost.ajax", { "post" : postId }, function(data, textStatus) {
if ((data != null) && data.success) {
var firstOlderPost = null;
- $("#sone #posts .post").each(function() {
+ $("#sone .post").each(function() {
if (getPostTime(this) < data.post.time) {
firstOlderPost = $(this);
return false;
if (firstOlderPost != null) {
newPost.insertBefore(firstOlderPost);
} else {
- $("#sone #posts .post:last").after(newPost);
+ $("#sone #posts").append(newPost);
}
ajaxifyPost(newPost);
newPost.slideDown();