|
|
|
@ -33,10 +33,12 @@ define('forum/topic/posts', [
|
|
|
|
|
ajaxify.data.postcount ++;
|
|
|
|
|
postTools.updatePostCount(ajaxify.data.postcount);
|
|
|
|
|
|
|
|
|
|
if (config.usePagination) {
|
|
|
|
|
onNewPostPagination(data);
|
|
|
|
|
} else {
|
|
|
|
|
onNewPostInfiniteScroll(data);
|
|
|
|
|
if (config.scrollToMyPost) {
|
|
|
|
|
if (config.usePagination) {
|
|
|
|
|
onNewPostPagination(data);
|
|
|
|
|
} else {
|
|
|
|
|
onNewPostInfiniteScroll(data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -79,7 +81,7 @@ define('forum/topic/posts', [
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function scrollToPostIfSelf(post) {
|
|
|
|
|
var isSelfPost = config.scrollToMyPost && parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
|
|
|
|
|
var isSelfPost = parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
|
|
|
|
|
if (isSelfPost) {
|
|
|
|
|
navigator.scrollBottom(post.index);
|
|
|
|
|
}
|
|
|
|
|