From 23a79c98df9d8a1dd6260a3e64172e607e365ef0 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 17 Oct 2018 16:42:36 +0200 Subject: [PATCH] Add "No further notifications" text --- assets/js/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/js/main.js b/assets/js/main.js index 79d1801..3700d93 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -329,8 +329,11 @@ function loadNotificationsAsync() { if (unread.length > 0) { $('#notificationCount').text(unread.length); } + notificationOffset++; + } else { + $('#notificationMenu .list-group p.list-group-item').remove(); + $('#notificationMenu .list-group').append(`

Keine neuen Benachrichtigungen

`) } - notificationOffset++; } }, error: () => {