Decline a friend request
This commit is contained in:
@@ -959,7 +959,7 @@ MessengerUI, Messages) {
|
||||
};
|
||||
var $newPadBlock = UIElements.createDropdown(dropdownConfig);
|
||||
var $button = $newPadBlock.find('button');
|
||||
$button.attr('title', Messages.notifications_title);
|
||||
$button.attr('title', Messages.notifications_empty);
|
||||
$button.addClass('fa fa-bell-o');
|
||||
var $n = $button.find('.cp-dropdown-button-title').hide();
|
||||
var $empty = $(div).find('.cp-notifications-empty');
|
||||
@@ -970,10 +970,12 @@ MessengerUI, Messages) {
|
||||
$button.removeClass('fa-bell-o').removeClass('fa-bell');
|
||||
$n.removeClass('cp-notifications-small');
|
||||
if (n === 0) {
|
||||
$button.attr('title', Messages.notifications_empty);
|
||||
$empty.show();
|
||||
$n.hide();
|
||||
return void $button.addClass('fa-bell-o');
|
||||
}
|
||||
$button.attr('title', Messages.notifications_title);
|
||||
if (n > 99) {
|
||||
n = '99+';
|
||||
$n.addClass('cp-notifications-small');
|
||||
|
||||
Reference in New Issue
Block a user