aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js18
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);