From 631a8278d34da70ff312b0dcc11f8e486a4d4597 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 3 Feb 2017 11:21:06 +0100 Subject: do not hide button - just gray it out --- view/js/main.js | 4 ++-- view/tpl/nav.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'view') diff --git a/view/js/main.js b/view/js/main.js index 11dd1b817..db37925e5 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -369,10 +369,10 @@ function NavUpdate() { updateCountsOnly = false; if(data.network || data.home || data.intros || data.mail || data.all_events || data.notify) { - $('#notifications-btn').show(); + $('#notifications-btn').css('color', 'white').prop('disabled', false); } else { - $('#notifications-btn').hide(); + $('#notifications-btn').css('color', 'grey').prop('disabled', true); $('#navbar-collapse-1').removeClass('in'); } diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index 8b7a27d0c..68326a077 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -6,7 +6,7 @@ {{if $localuser}} - {{/if}} -- cgit v1.2.3