fix: category load more btn visibility

This commit is contained in:
Barış Soner Uşaklı
2021-11-04 13:19:37 -04:00
parent 66e7cdac7a
commit 054685265d

View File

@@ -107,7 +107,8 @@ define('forum/category', [
app.createUserTooltips(html);
ajaxify.data.nextSubCategoryStart += ajaxify.data.subCategoriesPerPage;
ajaxify.data.subCategoriesLeft -= data.length;
btn.translateText('[[category:x-more-categories, ' + ajaxify.data.subCategoriesLeft + ']]');
btn.toggleClass('hidden', ajaxify.data.subCategoriesLeft <= 0)
.translateText('[[category:x-more-categories, ' + ajaxify.data.subCategoriesLeft + ']]');
});
});
return false;