projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatically un-new posts and replies from local Sones.
[Sone.git]
/
src
/
main
/
resources
/
static
/
javascript
/
sone.js
diff --git
a/src/main/resources/static/javascript/sone.js
b/src/main/resources/static/javascript/sone.js
index
a489c60
..
562a744
100644
(file)
--- 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");
}
});
newPost = $(data.post.html).addClass("hidden");
+ if ($(".post-author-local", newPost).text() == "true") {
+ newPost.removeClass("new");
+ }
if (firstOlderPost != null) {
newPost.insertBefore(firstOlderPost);
}
if (firstOlderPost != null) {
newPost.insertBefore(firstOlderPost);
}
@@
-1268,6
+1271,9
@@
function loadNewReply(replyId, soneId, postId, postSoneId) {
}
});
newReply = $(data.reply.html).addClass("hidden");
}
});
newReply = $(data.reply.html).addClass("hidden");
+ if ($(".reply-author-local", newPost).text() == "true") {
+ newPost.removeClass("new");
+ }
if (firstNewerReply != null) {
newReply.insertBefore(firstNewerReply);
} else {
if (firstNewerReply != null) {
newReply.insertBefore(firstNewerReply);
} else {