From: David ‘Bombe’ Roden Date: Thu, 25 Nov 2010 14:03:37 +0000 (+0100) Subject: Mark post as known when starting to enter a comment. X-Git-Tag: 0.3.1-RC1~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=221c7e9749a57e778ca778f231923f17da2f200d;p=Sone.git Mark post as known when starting to enter a comment. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 8a40131..d5c4461 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -69,6 +69,7 @@ function addCommentLink(postId, element) { } commentElement = (function(postId) { var commentElement = $("
Comment
").addClass("show-reply-form").click(function() { + markPostAsKnown(getPostElement(this)); replyElement = $("#sone .post#" + postId + " .create-reply"); replyElement.removeClass("hidden"); replyElement.removeClass("light");