mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +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) {
|
if (!pid) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!offset) {
|
if(!offset) {
|
||||||
offset = 0;
|
offset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($('#post_anchor_' + pid).length) {
|
if($('#post_anchor_' + pid).length) {
|
||||||
return scrollToPid(pid);
|
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();
|
animateScroll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user