fix: removal of scroll anchoring code in favour of browser handling

closes #6150
This commit is contained in:
Julian Lam
2018-11-20 16:56:54 -05:00
parent e1597b8337
commit 98c14e0e68
7 changed files with 3 additions and 131 deletions

View File

@@ -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'));