Fixed: Category pagination error; Check if first offset is NaN

v1.18.x
Micheil Smith 11 years ago
parent 591fb41c08
commit 47d21eb008

@ -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;

Loading…
Cancel
Save