diff options
author | git-marijus <mario@mariovavti.com> | 2017-07-28 22:42:02 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-07-28 22:42:02 +0200 |
commit | f9b342c87d4129c457244861b3b841cb9dfe139b (patch) | |
tree | 560803c195d165117d88d1cf941f27de396459bd /view/js/main.js | |
parent | 5f7b2e7c173a45bcd0bd3f09ad1a6fe71b6ae4fb (diff) | |
download | volse-hubzilla-f9b342c87d4129c457244861b3b841cb9dfe139b.tar.gz volse-hubzilla-f9b342c87d4129c457244861b3b841cb9dfe139b.tar.bz2 volse-hubzilla-f9b342c87d4129c457244861b3b841cb9dfe139b.zip |
initial notifications support for new shared files and new (since initial site load) pubstream activity
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); |