Notifications UI
This commit is contained in:
1 parent
9cb1a059f2
commit
ed868f9c5d
2 files changed
+15
-1
No files matched your search
@@ -971,11 +971,16 @@ MessengerUI, Messages) {
|
||||
updateUserList(toolbar, config);
|
||||
var n = $(div).find('.cp-notification').length;
|
||||
$button.removeClass('fa-bell-o').removeClass('fa-bell');
|
||||
$n.removeClass('cp-notifications-small');
|
||||
if (n === 0) {
|
||||
$empty.show();
|
||||
$n.hide();
|
||||
return void $button.addClass('fa-bell-o');
|
||||
}
|
||||
if (n > 99) {
|
||||
n = '99+';
|
||||
$n.addClass('cp-notifications-small');
|
||||
}
|
||||
$empty.hide();
|
||||
$n.text(n).show();
|
||||
$button.addClass('fa-bell');
|
||||
|
||||
Reference in new issue
Block a user