hide notifications button if there are none
This commit is contained in:
parent
8e4960f31d
commit
a5c1685ea0
@ -368,6 +368,14 @@ function NavUpdate() {
|
|||||||
|
|
||||||
updateCountsOnly = false;
|
updateCountsOnly = false;
|
||||||
|
|
||||||
|
if(data.network || data.home || data.intros || data.mail || data.all_events || data.notify) {
|
||||||
|
$('#notifications-btn').show();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$('#notifications-btn').hide();
|
||||||
|
$('#navbar-collapse-1').removeClass('in');
|
||||||
|
}
|
||||||
|
|
||||||
if(data.network == 0) {
|
if(data.network == 0) {
|
||||||
data.network = '';
|
data.network = '';
|
||||||
$('.net-update, .net-button').hide();
|
$('.net-update, .net-button').hide();
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
{{if $localuser}}
|
{{if $localuser}}
|
||||||
<button id="notifications-btn" type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
|
<button id="notifications-btn" type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1" style="display: none">
|
||||||
<i class="fa fa-exclamation-circle"></i>
|
<i class="fa fa-exclamation-circle"></i>
|
||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Reference in New Issue
Block a user