diff options
author | zotlabs <mike@macgirvin.com> | 2017-07-28 15:25:29 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-07-28 15:25:29 -0700 |
commit | e316494e06062f05c8026111dc1132fb6868bce5 (patch) | |
tree | 82c221a92d6075bd38c16174bcb8187fb017181e /view/js/main.js | |
parent | d3a5911932201eda2328123873d75e8c13cb9a89 (diff) | |
parent | 4585e35b3e086638fa7a0c3832d80c57339a397e (diff) | |
download | volse-hubzilla-e316494e06062f05c8026111dc1132fb6868bce5.tar.gz volse-hubzilla-e316494e06062f05c8026111dc1132fb6868bce5.tar.bz2 volse-hubzilla-e316494e06062f05c8026111dc1132fb6868bce5.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js index 6c42531ea..8c49e3173 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -370,7 +370,7 @@ function NavUpdate() { updateCountsOnly = false; - if(data.network || data.home || data.intros || data.mail || data.all_events || data.notify) { + if(data.network || data.home || data.intros || data.mail || data.all_events || data.notify || data.files || data.pubs) { $('#notifications-btn').css('opacity', 1); } else { @@ -386,6 +386,22 @@ function NavUpdate() { } $('.net-update').html(data.network); + if(data.pubs == 0) { + data.pubs = ''; + $('.pubs-update, .pubs-button').hide(); + } else { + $('.pubs-update, .pubs-button').show(); + } + $('.pubs-update').html(data.pubs); + + if(data.files == 0) { + data.files = ''; + $('.files-update, .files-button').hide(); + } else { + $('.files-update, .files-button').show(); + } + $('.files-update').html(data.files); + if(data.home == 0) { data.home = ''; $('.home-update, .home-button').hide(); } else { $('.home-update, .home-button').show(); } $('.home-update').html(data.home); |