X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=8a401312ca2bb18968b7c31cf6688ad9b29015dc;hp=3b61e29b561deb87cb2608fbb5f717db7501ef67;hb=d745c208029d06ea2cde00af631690fe6419cc3e;hpb=45abd9c2c690c31e2c251072f9e7633f02977e22 diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 3b61e29..8a40131 100644 --- 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); - markPostAsKnown(postElement); - markReplyAsKnown($(postElement).find(".reply")); + markPostAsKnown(getPostElement(inputField)); $("#sone .post#" + postId + " .create-reply").addClass("hidden"); } else { alert(error);