From: David ‘Bombe’ Roden Date: Wed, 8 Jun 2011 13:24:31 +0000 (+0200) Subject: Automatically un-new posts and replies from local Sones. X-Git-Tag: 0.6.5^2~10^2~3 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0d9237f934ca9ac87ff7e5b62223bf21023b6069;p=Sone.git Automatically un-new posts and replies from local Sones. --- 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 {