do not hide button - just gray it out
This commit is contained in:
parent
a5c1685ea0
commit
631a8278d3
@ -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');
|
||||
}
|
||||
|
||||
|
@ -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}}
|
||||
|
Reference in New Issue
Block a user