projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use correct post element.
[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
3b61e29
..
8a40131
100644
(file)
--- a/
src/main/resources/static/javascript/sone.js
+++ b/
src/main/resources/static/javascript/sone.js
@@
-454,8
+454,7
@@
function ajaxifyPost(postElement) {
postReply(postId, text, function(success, error, replyId) {
if (success) {
loadNewReply(replyId);
postReply(postId, text, function(success, error, replyId) {
if (success) {
loadNewReply(replyId);
- markPostAsKnown(postElement);
- markReplyAsKnown($(postElement).find(".reply"));
+ markPostAsKnown(getPostElement(inputField));
$("#sone .post#" + postId + " .create-reply").addClass("hidden");
} else {
alert(error);
$("#sone .post#" + postId + " .create-reply").addClass("hidden");
} else {
alert(error);