From: David ‘Bombe’ Roden Date: Thu, 25 Nov 2010 12:49:31 +0000 (+0100) Subject: Insert reply at correct position. X-Git-Tag: 0.3.1-RC1~12 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=954541600c80c270f43bf63f476b41ee499cfed3 Insert reply at correct position. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index a860e5a..936ca57 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -634,7 +634,7 @@ function loadNewReply(replyId) { }); newReply = $(data.reply.html).addClass("hidden"); if (firstNewerReply != null) { - newReply.insertAfter(firstNewerReply); + newReply.insertBefore(firstNewerReply); } else { if ($(this).find(".replies .create-reply")) { $(this).find(".replies .create-reply").before(newReply);