diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2024-12-04 13:03:14 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2024-12-04 13:03:14 +0000 |
| commit | 715fa1881de122b7101091dd13affe0f6a17c429 (patch) | |
| tree | ef99bcef6616893920e593158884693212928dc5 /resources/assets/javascripts/lib | |
| parent | 278270b3f55f83593b7c07e206fe5edb6ebc121e (diff) | |
Polishing TIC: Avatarmenu
Closes #4935
Merge request studip/studip!3718
Diffstat (limited to 'resources/assets/javascripts/lib')
| -rw-r--r-- | resources/assets/javascripts/lib/personal_notifications.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/resources/assets/javascripts/lib/personal_notifications.js b/resources/assets/javascripts/lib/personal_notifications.js index 392e8b0..d05fbaa 100644 --- a/resources/assets/javascripts/lib/personal_notifications.js +++ b/resources/assets/javascripts/lib/personal_notifications.js @@ -169,11 +169,12 @@ const PersonalNotifications = { }); if (really_new > 0) { $('#notification_marker') - .data('seen', false) + .data('seen', false); + $('#avatar-menu-container') .addClass('alert'); PageLayout.title_prefix = '(!) '; } else { - $('#notification_marker').removeClass('alert'); + $('#avatar-menu-container').removeClass('alert'); PageLayout.title_prefix = ''; } if (count) { @@ -220,8 +221,10 @@ const PersonalNotifications = { $.get(STUDIP.URLHelper.getURL('dispatch.php/jsupdater/notifications_seen')).then(time => { $('#notification_marker') - .removeClass('alert') .data('lastvisit', time); + $('#avatar-menu-container') + .removeClass('alert'); + }); } }; |
