From 4656856dfbf41e855b1bb8625290c07a5dcf8d38 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 25 Jan 2018 17:27:48 +0100 Subject: move template out of #notifications and revert reset timer on manual trigger --- view/js/main.js | 2 -- view/tpl/notifications_widget.tpl | 14 +++++++------- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'view') diff --git a/view/js/main.js b/view/js/main.js index 41ca0bb3f..8eb02156b 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -70,8 +70,6 @@ $(document).ready(function() { if(! $('#nav-' + notifyType + '-sub').hasClass('show')) { loadNotificationItems(notifyType); - if(timer) clearTimeout(timer); - timer = setTimeout(updateInit,updateInterval); } $(this).data('clicked', true); diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index a42c18751..69e5e15bc 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -115,14 +115,14 @@
{{$no_notifications}}...
+