Node.js based forum software built for the modern web
fix: category load more btn visibility
Barış Soner Uşaklı054685265d0b
diff --git a/public/src/client/category.js b/public/src/client/category.jsindex 03d63bae86..da8a6296cf 100644--- a/public/src/client/category.js+++ b/public/src/client/category.js@@ -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;