Use correct post element.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Nov 2010 14:03:23 +0000 (15:03 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Nov 2010 14:03:23 +0000 (15:03 +0100)
src/main/resources/static/javascript/sone.js

index 3b61e29..8a40131 100644 (file)
@@ -454,8 +454,7 @@ function ajaxifyPost(postElement) {
                postReply(postId, text, function(success, error, replyId) {
                        if (success) {
                                loadNewReply(replyId);
-                               markPostAsKnown(postElement);
-                               markReplyAsKnown($(postElement).find(".reply"));
+                               markPostAsKnown(getPostElement(inputField));
                                $("#sone .post#" + postId + " .create-reply").addClass("hidden");
                        } else {
                                alert(error);