diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-02-03 11:00:35 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-02-03 11:00:35 +0100 |
commit | a5c1685ea0323de974d4a1469f122283e278e91a (patch) | |
tree | 71337fbc436adccdd4d490d6863c1f1c9fcfbb3b /view/js/main.js | |
parent | 8e4960f31d3a64b1518cc7839c6697ac7c53243d (diff) | |
download | volse-hubzilla-a5c1685ea0323de974d4a1469f122283e278e91a.tar.gz volse-hubzilla-a5c1685ea0323de974d4a1469f122283e278e91a.tar.bz2 volse-hubzilla-a5c1685ea0323de974d4a1469f122283e278e91a.zip |
hide notifications button if there are none
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 8 |
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(); |