fixed category infinite loading

This commit is contained in:
Baris Usakli
2013-11-04 17:17:04 -05:00
parent fe15366524
commit 7b5a6bd3c9

View File

@@ -147,7 +147,7 @@ define(function () {
loadingMoreTopics = true;
socket.emit('api:category.loadMore', {
cid: cid,
after: $('#topics-container').children().length
after: $('#topics-container').children('.category-item').length
}, function (data) {
if (data.topics.length) {
Category.onTopicsLoaded(data.topics);