From: David ‘Bombe’ Roden Date: Fri, 26 Nov 2010 13:21:32 +0000 (+0100) Subject: Add click handler to new posts and replies only once. X-Git-Tag: 0.3.1-RC2~2 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=8d8cc8a9cced7cc9171cc09ce0fd024145605d70 Add click handler to new posts and replies only once. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index c02e240..a4ad957 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -618,9 +618,6 @@ function loadNewPost(postId) { return false; } }); - newPost = $(data.post.html).addClass("hidden").click(function() { - markPostAsKnown(this); - }); if (firstOlderPost != null) { newPost.insertBefore(firstOlderPost); } else { @@ -649,9 +646,6 @@ function loadNewReply(replyId) { return false; } }); - newReply = $(data.reply.html).addClass("hidden").click(function() { - markPostAsKnown(getPostElement(this)); - }); if (firstNewerReply != null) { newReply.insertBefore(firstNewerReply); } else {