From: David ‘Bombe’ Roden Date: Thu, 25 Nov 2010 12:49:55 +0000 (+0100) Subject: Mark a post and all its replies as known if a comment is added. X-Git-Tag: 0.3.1-RC1~10 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3785277a0b89b63a40b7423d80ba779c84ac630e;p=Sone.git Mark a post and all its replies as known if a comment is added. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 6cb227c..956b3df 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -454,6 +454,8 @@ function ajaxifyPost(postElement) { postReply(postId, text, function(success, error, replyId) { if (success) { loadNewReply(replyId); + markPostAsKnown(postElement); + markReplyAsKnown($(postElement).find(".reply")); $("#sone .post#" + postId + " .create-reply").addClass("hidden"); } else { alert(error);