oldNotification.replaceWith(notification.show());
} else {
$("#sone #notification-area").append(notification);
- notification.slideDown();
- setActivity();
+ if (value.id.substring(0, 5) != "local") {
+ notification.slideDown();
+ setActivity();
+ }
}
});
});
}
});
newReply = $(data.reply.html).addClass("hidden");
- if ($(".reply-author-local", newPost).text() == "true") {
- newPost.removeClass("new");
+ if ($(".reply-author-local", newReply).text() == "true") {
+ newReply.removeClass("new");
+ (function(newReply) {
+ setTimeout(function() {
+ markReplyAsKnown(newReply, false);
+ }, 5000);
+ })(newReply);
}
if (firstNewerReply != null) {
newReply.insertBefore(firstNewerReply);