fix so the parent button doesn't ajaxify if the post is already on the screen

v1.18.x
barisusakli 9 years ago
parent 6e469f1f0a
commit 9207d6a74d

@ -198,7 +198,8 @@ define('forum/topic', [
var toPost = $('[component="post"][data-pid="' + toPid + '"]');
if (toPost.length) {
e.preventDefault();
return navigator.scrollToPost(toPost.attr('data-index'), true);
navigator.scrollToPost(toPost.attr('data-index'), true);
return false;
}
});
}

Loading…
Cancel
Save