mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
dont scroll to 0th post
This commit is contained in:
@@ -1145,10 +1145,12 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
||||
if (!pid) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(!offset) {
|
||||
offset = 0;
|
||||
}
|
||||
|
||||
|
||||
if($('#post_anchor_' + pid).length) {
|
||||
return scrollToPid(pid);
|
||||
}
|
||||
@@ -1193,7 +1195,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
||||
});
|
||||
}
|
||||
|
||||
if (tid && scrollTo.length) {
|
||||
if (tid && scrollTo.length && $('#post-container li.post-row[data-pid="' + pid + '"]').attr('data-index') !== '0') {
|
||||
animateScroll();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user