Insert reply at correct position.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Nov 2010 12:49:31 +0000 (13:49 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Nov 2010 12:49:31 +0000 (13:49 +0100)
src/main/resources/static/javascript/sone.js

index a860e5a..936ca57 100644 (file)
@@ -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);