aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index ed2f6a2e1..11dd1b817 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -368,6 +368,14 @@ function NavUpdate() {
updateCountsOnly = false;
+ if(data.network || data.home || data.intros || data.mail || data.all_events || data.notify) {
+ $('#notifications-btn').show();
+ }
+ else {
+ $('#notifications-btn').hide();
+ $('#navbar-collapse-1').removeClass('in');
+ }
+
if(data.network == 0) {
data.network = '';
$('.net-update, .net-button').hide();