projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return IDs of Sone and recipient when getting new posts.
[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
f7a686d
..
c9521b7
100644
(file)
--- a/
src/main/resources/static/javascript/sone.js
+++ b/
src/main/resources/static/javascript/sone.js
@@
-585,7
+585,7
@@
function getStatus() {
});
/* process new posts. */
$.each(data.newPosts, function(index, value) {
});
/* process new posts. */
$.each(data.newPosts, function(index, value) {
- loadNewPost(value);
+ loadNewPost(value
.id, value.sone, value.recipient
);
});
/* process new replies. */
$.each(data.newReplies, function(index, value) {
});
/* process new replies. */
$.each(data.newReplies, function(index, value) {
@@
-706,7
+706,7
@@
function hasReply(replyId) {
return $("#sone .reply#" + replyId).length > 0;
}
return $("#sone .reply#" + replyId).length > 0;
}
-function loadNewPost(postId) {
+function loadNewPost(postId
, soneId, recipientId
) {
if (hasPost(postId)) {
return;
}
if (hasPost(postId)) {
return;
}