fixed category sockets

This commit is contained in:
Baris Soner Usakli
2014-01-17 12:49:21 -05:00
parent d72926a5bb
commit c0712583f2
4 changed files with 17 additions and 7 deletions

View File

@@ -133,7 +133,11 @@ define(['composer'], function(composer) {
cid: cid,
after: $('#topics-container').children('.category-item').length
}, function (err, data) {
if (!err && data.topics.length) {
if(err) {
return app.alertError(err.message);
}
if (data && data.topics.length) {
Category.onTopicsLoaded(data.topics);
}
loadingMoreTopics = false;