fix: make selector stricter

so navigator number doesn't change due to nested replies
This commit is contained in:
Barış Soner Uşaklı
2023-08-30 11:49:28 -04:00
parent 887dfd7da7
commit 9f7a39c59c

View File

@@ -49,7 +49,7 @@ define('forum/topic', [
posts.signaturesShown = {};
}
await posts.onTopicPageLoad(components.get('post'));
navigator.init('[component="post"]', ajaxify.data.postcount, Topic.toTop, Topic.toBottom, Topic.navigatorCallback);
navigator.init('[component="topic"]>[component="post"]', ajaxify.data.postcount, Topic.toTop, Topic.toBottom, Topic.navigatorCallback);
postTools.init(tid);
threadTools.init(tid, $('.topic'));