v1.18.x
barisusakli 9 years ago
parent a9b68606a1
commit 6e3d525ef4

@ -57,6 +57,7 @@ define('forum/topic/posts', [
function onNewPostPagination(data) {
function scrollToPost() {
scrollToPostIfSelf(data.posts[0]);
Posts.loadImages();
}
var posts = data.posts;
@ -92,12 +93,13 @@ define('forum/topic/posts', [
html.addClass('new');
}
scrollToPostIfSelf(data.posts[0]);
Posts.loadImages();
});
}
function scrollToPostIfSelf(post) {
if (!ajaxify.data.scrollToMyPost) {
return;
return;
}
var isSelfPost = parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
if (isSelfPost) {

Loading…
Cancel
Save