Skip to content

Node.js based forum software built for the modern web

found a rogue topic class selector

psychobunnyd39c2924e4b0
diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.js
index 697046bd28..f4f4d74a59 100644
--- a/public/src/modules/navigator.js
+++ b/public/src/modules/navigator.js
@@ -223,9 +223,9 @@ define('navigator', ['forum/pagination'], function(pagination) {
function highlightPost() {
if (highlight) {
- scrollTo.parent().find('.topic-item').addClass('highlight');
+ scrollTo.parents('[component="post"]').addClass('highlight');
setTimeout(function() {
- scrollTo.parent().find('.topic-item').removeClass('highlight');
+ scrollTo.parents('[component="post"]').removeClass('highlight');
}, 3000);
}
}