From: David ‘Bombe’ Roden Date: Thu, 25 Nov 2010 14:03:23 +0000 (+0100) Subject: Use correct post element. X-Git-Tag: 0.3.1-RC1~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d745c208029d06ea2cde00af631690fe6419cc3e;p=Sone.git Use correct post element. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 3b61e29..8a40131 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -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);