fix first reply insertion

v1.18.x
barisusakli 10 years ago
parent 5950f97f96
commit c3a6b11939

@ -123,9 +123,9 @@ define('forum/topic/posts', [
var after, before;
if (direction === 1) {
if (direction === 1 && repliesSelector.length) {
after = repliesSelector.last();
} else if (direction === -1) {
} else if (direction === -1 && repliesSelector.length) {
before = repliesSelector.first();
}

@ -197,7 +197,7 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com
navigator.scrollToPostIndex = function(postIndex, highlight, duration, offset) {
var scrollTo = components.get('post/anchor', postIndex);
if (!scrollTo.length) {
navigator.scrollActive = false;
return;

Loading…
Cancel
Save