X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=6ef3e203368d44b6a6384a2520bf62042f5efaaa;hp=8a6411825db453d557a9f49e16d41b3818470304;hb=16b4eac4cee04086b91cf5cad580a6f2f69a194b;hpb=faa26c42ce692d20bd5c22c3e1797729d7dea9e1 diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 8a64118..6ef3e20 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -598,7 +598,7 @@ function loadNewPost(postId) { $.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; @@ -608,7 +608,7 @@ function loadNewPost(postId) { if (firstOlderPost != null) { newPost.insertBefore(firstOlderPost); } else { - $("#sone #posts .post:last").after(newPost); + $("#sone #posts").append(newPost); } ajaxifyPost(newPost); newPost.slideDown();