added badge to header for unread topics count

This commit is contained in:
psychobunny
2013-08-22 00:08:11 +08:00
parent 746fa93c80
commit f1547a7b1f
6 changed files with 32 additions and 7 deletions

View File

@@ -56,6 +56,10 @@
$('#topics-container').empty();
$('#category-no-topics').removeClass('hidden');
app.alertSuccess('All topics marked as read!');
$('#numUnreadBadge')
.removeClass('badge-important')
.addClass('badge-inverse')
.html('0');
} else {
app.alertError('There was an error marking topics read!');
}