aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/lib
diff options
context:
space:
mode:
authorRon Lucke <lucke@elan-ev.de>2025-03-10 08:49:12 +0000
committerRon Lucke <lucke@elan-ev.de>2025-03-10 08:49:12 +0000
commit37a43fe5fd150a82b5669211e0012456ce21a0f6 (patch)
tree22d4d1b99f766eab58b7c3bf1f9f035ce885df30 /resources/assets/javascripts/lib
parent7f0bc45811de2d68ebd4415ef4197438d5d80637 (diff)
Anzeige der Notifications verhält sich noch komisch
Closes #5093 Merge request studip/studip!4012
Diffstat (limited to 'resources/assets/javascripts/lib')
-rw-r--r--resources/assets/javascripts/lib/personal_notifications.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/resources/assets/javascripts/lib/personal_notifications.js b/resources/assets/javascripts/lib/personal_notifications.js
index a70e82e..ea0d72c 100644
--- a/resources/assets/javascripts/lib/personal_notifications.js
+++ b/resources/assets/javascripts/lib/personal_notifications.js
@@ -169,12 +169,11 @@ const PersonalNotifications = {
});
if (really_new > 0) {
$('#notification_marker')
- .data('seen', false);
- $('#notification-wrapper')
+ .data('seen', false)
.addClass('alert');
PageLayout.title_prefix = '(!) ';
} else {
- $('#notification-wrapper').removeClass('alert');
+ $('#notification_marker').removeClass('alert');
PageLayout.title_prefix = '';
}
if (count) {
@@ -226,8 +225,7 @@ const PersonalNotifications = {
$.get(STUDIP.URLHelper.getURL('dispatch.php/jsupdater/notifications_seen')).then(time => {
$('#notification_marker')
- .data('lastvisit', time);
- $('#notification-wrapper')
+ .data('lastvisit', time)
.removeClass('alert');
});