hide notifications button if there are none

This commit is contained in:
Mario Vavti
2017-02-03 11:00:35 +01:00
parent 8e4960f31d
commit a5c1685ea0
2 changed files with 9 additions and 1 deletions

View File

@@ -368,6 +368,14 @@ function NavUpdate() {
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) {
data.network = '';
$('.net-update, .net-button').hide();