diff options
-rw-r--r-- | view/js/main.js | 8 | ||||
-rwxr-xr-x | view/tpl/nav.tpl | 2 |
2 files changed, 9 insertions, 1 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(); diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index 65edae92a..8b7a27d0c 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -6,7 +6,7 @@ <span class="icon-bar"></span> </button> {{if $localuser}} - <button id="notifications-btn" type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1"> + <button id="notifications-btn" type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1" style="display: none"> <i class="fa fa-exclamation-circle"></i> </button> {{/if}} |