mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-05 06:09:57 +01:00
Merge pull request #1356 from miksago/fix-pagination-offset-error
Fixed: Category pagination error; Check if first offset is NaN
This commit is contained in:
@@ -144,6 +144,9 @@ define(['composer', 'forum/pagination', 'share', 'navigator'], function(composer
|
||||
} else {
|
||||
el = $('#topics-container .category-item[data-tid]').first();
|
||||
after = parseInt(el.attr('data-index'), 10);
|
||||
if(isNaN(after)){
|
||||
after = 0;
|
||||
}
|
||||
after -= config.topicsPerPage;
|
||||
if(after < 0) {
|
||||
after = 0;
|
||||
|
||||
Reference in New Issue
Block a user