Mark post as known when starting to enter a comment.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Nov 2010 14:03:37 +0000 (15:03 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Nov 2010 14:03:37 +0000 (15:03 +0100)
src/main/resources/static/javascript/sone.js

index 8a40131..d5c4461 100644 (file)
@@ -69,6 +69,7 @@ function addCommentLink(postId, element) {
        }
        commentElement = (function(postId) {
                var commentElement = $("<div><span>Comment</span></div>").addClass("show-reply-form").click(function() {
+                       markPostAsKnown(getPostElement(this));
                        replyElement = $("#sone .post#" + postId + " .create-reply");
                        replyElement.removeClass("hidden");
                        replyElement.removeClass("light");