mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
[ticket/14855] Update notification and PM alert bubbles
Alternative implementation without removing notification from the DOM, but changing the class. So that style designers might have more options (show/not show). PHPBB3-14855
This commit is contained in:
@@ -132,9 +132,10 @@ phpbb.markNotifications = function($popup, unreadCount) {
|
||||
|
||||
// Update the unread count.
|
||||
$('strong', '#notification_list_button').html(unreadCount);
|
||||
// Remove the Mark all read link & notification count if there are no unread notifications.
|
||||
// Remove the Mark all read link and hide notification count if there are no unread notifications.
|
||||
if (!unreadCount) {
|
||||
$('#mark_all_notifications, #notification_list_button > strong').remove();
|
||||
$('#mark_all_notifications').remove();
|
||||
$('#notification_list_button > strong').addClass('hidden');
|
||||
}
|
||||
|
||||
// Update page title
|
||||
|
Reference in New Issue
Block a user