From 64a49eb54ac93b9fb3ba4f65894c60dba5620048 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 18 Oct 2017 00:25:00 +0200 Subject: update notifications if a notification area remains open --- view/js/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/view/js/main.js b/view/js/main.js index 0aeb4d36d..3455de5c2 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1000,6 +1000,13 @@ function notify_popup_loader(notifyType) { }); } }); + + setTimeout(function() { + if(notify_menu.hasClass('show')) { + console.log('updating ' + notifyType + ' notifications...'); + setTimeout(notify_popup_loader, updateInterval, notifyType); + } + }, 1000); } -- cgit v1.2.3