aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-01-07 19:14:19 +0100
committerMario Vavti <mario@mariovavti.com>2018-01-07 19:14:19 +0100
commit98fd3118911313c3f365cc535e9357cd92268534 (patch)
treea098f78e412dec45947d51988f8dbb85baa6552f /view/js/main.js
parent8d0cdf5c9a18b807abcb1e73aa286f9e4886f333 (diff)
downloadvolse-hubzilla-98fd3118911313c3f365cc535e9357cd92268534.tar.gz
volse-hubzilla-98fd3118911313c3f365cc535e9357cd92268534.tar.bz2
volse-hubzilla-98fd3118911313c3f365cc535e9357cd92268534.zip
start with nonactive state for the notifications button and display some text if there are no notifications on small screens only
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 11a09b647..a228e6fbc 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -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) {