Check and remove “new” class from correct element.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 8 Jun 2011 13:43:41 +0000 (15:43 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 8 Jun 2011 13:43:41 +0000 (15:43 +0200)
src/main/resources/static/javascript/sone.js

index 35db2d6..0cc6480 100644 (file)
@@ -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);