user friendly message if no topics exist in a category

This commit is contained in:
psychobunny
2013-05-21 17:19:33 -04:00
parent ab492f147f
commit effb26c856
2 changed files with 15 additions and 5 deletions

View File

@@ -72,17 +72,18 @@ marked.setOptions({
callback(false);
return;
}
active_usernames = replies[1];
var topics = [];
if (tids.length == 0) {
callback({
'category_name' : category_id ? category_name : 'Recent',
'show_topic_button' : category_id ? 'show' : 'hidden',
'category_id': category_id || 0,
'topics': topics
'topics' : []
});
}
active_usernames = replies[1];
var topics = [];
title = replies[2];
uid = replies[3];