mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 21:29:15 +02:00
closes #1458
This commit is contained in:
@@ -307,7 +307,7 @@ define(['composer', 'forum/pagination', 'share', 'navigator', 'forum/categoryToo
|
||||
return;
|
||||
}
|
||||
|
||||
if(after === 0 && $('#topics-container li.category-item[data-index="0"]').length) {
|
||||
if(!utils.isNumber(after) || (after === 0 && $('#topics-container li.category-item[data-index="0"]').length)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -744,7 +744,7 @@ define(['forum/pagination', 'forum/topic/threadTools', 'forum/topic/postTools',
|
||||
return;
|
||||
}
|
||||
|
||||
if(after === 0 && $('#post-container li.post-row[data-index="0"]').length) {
|
||||
if (!utils.isNumber(after) || (after === 0 && $('#post-container li.post-row[data-index="0"]').length)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user