diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-02-03 11:21:06 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-02-03 11:21:06 +0100 |
commit | 631a8278d34da70ff312b0dcc11f8e486a4d4597 (patch) | |
tree | 20fb5405c3ebbdb1edf8423c4e8d8724a3aee391 | |
parent | a5c1685ea0323de974d4a1469f122283e278e91a (diff) | |
download | volse-hubzilla-631a8278d34da70ff312b0dcc11f8e486a4d4597.tar.gz volse-hubzilla-631a8278d34da70ff312b0dcc11f8e486a4d4597.tar.bz2 volse-hubzilla-631a8278d34da70ff312b0dcc11f8e486a4d4597.zip |
do not hide button - just gray it out
-rw-r--r-- | view/js/main.js | 4 | ||||
-rwxr-xr-x | view/tpl/nav.tpl | 2 |
2 files changed, 3 insertions, 3 deletions
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 @@ <span class="icon-bar"></span> </button> {{if $localuser}} - <button id="notifications-btn" type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1" style="display: none"> + <button id="notifications-btn" type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1" style="color: grey;"> <i class="fa fa-exclamation-circle"></i> </button> {{/if}} |