From: David ‘Bombe’ Roden Date: Wed, 8 Jun 2011 13:43:41 +0000 (+0200) Subject: Check and remove “new” class from correct element. X-Git-Tag: 0.6.5^2~10^2 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=b063001a823dfd964d72ea7bb32c642d68164d4d Check and remove “new” class from correct element. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 35db2d6..0cc6480 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1276,8 +1276,8 @@ function loadNewReply(replyId, soneId, postId, postSoneId) { } }); 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);