start with nonactive state for the notifications button and display some text if there are no notifications on small screens only

This commit is contained in:
Mario Vavti
2018-01-07 19:14:19 +01:00
parent 8d0cdf5c9a
commit 98fd311891
4 changed files with 9 additions and 0 deletions

View File

@@ -373,10 +373,12 @@ function notificationsUpdate() {
if(data.network || data.home || data.intros || data.register || data.mail || data.all_events || data.notify || data.files || data.pubs) {
$('.notifications-btn').css('opacity', 1);
$('#no_notifications').hide();
}
else {
$('.notifications-btn').css('opacity', 0.5);
$('#navbar-collapse-1').removeClass('show');
$('#no_notifications').show();
}
if(data.home || data.intros || data.register || data.mail || data.notify || data.files) {