projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use different notifications for local elements.
[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
35db2d6
..
dd33308
100644
(file)
--- a/
src/main/resources/static/javascript/sone.js
+++ b/
src/main/resources/static/javascript/sone.js
@@
-1079,8
+1079,10
@@
function loadNotifications(notificationIds) {
oldNotification.replaceWith(notification.show());
} else {
$("#sone #notification-area").append(notification);
oldNotification.replaceWith(notification.show());
} else {
$("#sone #notification-area").append(notification);
- notification.slideDown();
- setActivity();
+ if (value.id.substring(0, 5) != "local") {
+ notification.slideDown();
+ setActivity();
+ }
}
});
});
}
});
});
@@
-1276,8
+1278,8
@@
function loadNewReply(replyId, soneId, postId, postSoneId) {
}
});
newReply = $(data.reply.html).addClass("hidden");
}
});
newReply = $(data.reply.html).addClass("hidden");
- if ($(".reply-author-local", new
Post
).text() == "true") {
- new
Post
.removeClass("new");
+ if ($(".reply-author-local", new
Reply
).text() == "true") {
+ new
Reply
.removeClass("new");
(function(newReply) {
setTimeout(function() {
markReplyAsKnown(newReply, false);
(function(newReply) {
setTimeout(function() {
markReplyAsKnown(newReply, false);