disable load more users button if there is not more users, dont show mark all read in unread if user isnt logged in

v1.18.x
Baris Usakli 12 years ago
parent 1894d0a469
commit 0fef0aa582

@ -98,6 +98,8 @@
}, function(data) {
if(data.users.length) {
onUsersLoaded(data.users);
} else {
$('#load-more-users-btn').addClass('disabled');
}
loadingMoreUsers = false;
});

@ -149,6 +149,8 @@ marked.setOptions({
Topics.getTopicsByTids(topicIds, uid, function(topicData) {
unreadTopics.topics = topicData;
unreadTopics.nextStart = start + tids.length;
if(uid === 0)
unreadTopics.show_markallread_button = 'hidden';
callback(unreadTopics);
});
}

Loading…
Cancel
Save