mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix: removal of scroll anchoring code in favour of browser handling
closes #6150
This commit is contained in:
@@ -63,7 +63,6 @@ define('forum/topic/posts', [
|
||||
function onNewPostPagination(data) {
|
||||
function scrollToPost() {
|
||||
scrollToPostIfSelf(data.posts[0]);
|
||||
images.loadImages();
|
||||
}
|
||||
|
||||
var posts = data.posts;
|
||||
@@ -111,7 +110,6 @@ define('forum/topic/posts', [
|
||||
html.addClass('new');
|
||||
}
|
||||
scrollToPostIfSelf(data.posts[0]);
|
||||
images.loadImages();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -252,7 +250,6 @@ define('forum/topic/posts', [
|
||||
};
|
||||
|
||||
Posts.onTopicPageLoad = function (posts) {
|
||||
images.unloadImages(posts);
|
||||
Posts.showBottomPostBar();
|
||||
posts.find('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive');
|
||||
addBlockquoteEllipses(posts.find('[component="post/content"] > blockquote > blockquote'));
|
||||
|
||||
Reference in New Issue
Block a user