Fix notifications button title in top bar

pull/1/head
yflory 5 years ago
parent 21423a47dd
commit e28d4695c5

@ -1020,7 +1020,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_empty); $button.attr('title', Messages.notificationsPage);
$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');
@ -1031,7 +1031,6 @@ 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');
@ -1040,7 +1039,6 @@ MessengerUI, Messages) {
n = '99+'; n = '99+';
$n.addClass('cp-notifications-small'); $n.addClass('cp-notifications-small');
} }
$button.attr('title', Messages.notifications_title);
$empty.hide(); $empty.hide();
$n.text(n).show(); $n.text(n).show();
$button.addClass('fa-bell'); $button.addClass('fa-bell');

Loading…
Cancel
Save