From 0d9237f934ca9ac87ff7e5b62223bf21023b6069 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 8 Jun 2011 15:24:31 +0200 Subject: [PATCH] Automatically un-new posts and replies from local Sones. --- src/main/resources/static/javascript/sone.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index a489c60..562a744 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1235,6 +1235,9 @@ function loadNewPost(postId, soneId, recipientId, time) { } }); newPost = $(data.post.html).addClass("hidden"); + if ($(".post-author-local", newPost).text() == "true") { + newPost.removeClass("new"); + } if (firstOlderPost != null) { newPost.insertBefore(firstOlderPost); } @@ -1268,6 +1271,9 @@ function loadNewReply(replyId, soneId, postId, postSoneId) { } }); newReply = $(data.reply.html).addClass("hidden"); + if ($(".reply-author-local", newPost).text() == "true") { + newPost.removeClass("new"); + } if (firstNewerReply != null) { newReply.insertBefore(firstNewerReply); } else { -- 2.7.4