|
|
@ -959,7 +959,7 @@ MessengerUI, Messages) {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var $newPadBlock = UIElements.createDropdown(dropdownConfig);
|
|
|
|
var $newPadBlock = UIElements.createDropdown(dropdownConfig);
|
|
|
|
var $button = $newPadBlock.find('button');
|
|
|
|
var $button = $newPadBlock.find('button');
|
|
|
|
$button.attr('title', Messages.notifications_title);
|
|
|
|
$button.attr('title', Messages.notifications_empty);
|
|
|
|
$button.addClass('fa fa-bell-o');
|
|
|
|
$button.addClass('fa fa-bell-o');
|
|
|
|
var $n = $button.find('.cp-dropdown-button-title').hide();
|
|
|
|
var $n = $button.find('.cp-dropdown-button-title').hide();
|
|
|
|
var $empty = $(div).find('.cp-notifications-empty');
|
|
|
|
var $empty = $(div).find('.cp-notifications-empty');
|
|
|
@ -970,10 +970,12 @@ MessengerUI, Messages) {
|
|
|
|
$button.removeClass('fa-bell-o').removeClass('fa-bell');
|
|
|
|
$button.removeClass('fa-bell-o').removeClass('fa-bell');
|
|
|
|
$n.removeClass('cp-notifications-small');
|
|
|
|
$n.removeClass('cp-notifications-small');
|
|
|
|
if (n === 0) {
|
|
|
|
if (n === 0) {
|
|
|
|
|
|
|
|
$button.attr('title', Messages.notifications_empty);
|
|
|
|
$empty.show();
|
|
|
|
$empty.show();
|
|
|
|
$n.hide();
|
|
|
|
$n.hide();
|
|
|
|
return void $button.addClass('fa-bell-o');
|
|
|
|
return void $button.addClass('fa-bell-o');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$button.attr('title', Messages.notifications_title);
|
|
|
|
if (n > 99) {
|
|
|
|
if (n > 99) {
|
|
|
|
n = '99+';
|
|
|
|
n = '99+';
|
|
|
|
$n.addClass('cp-notifications-small');
|
|
|
|
$n.addClass('cp-notifications-small');
|
|
|
|