aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-19 21:41:45 +0100
committerMario Vavti <mario@mariovavti.com>2017-11-19 21:41:45 +0100
commit3efe144fa0c455529a3f6244557d1253885134cf (patch)
treed3f8b9bf3da6da75fcacc3cd7881ecefdf605a3e /view/js/main.js
parent744960d36d636f8840f8bcea13283ea7f97cc4e6 (diff)
downloadvolse-hubzilla-3efe144fa0c455529a3f6244557d1253885134cf.tar.gz
volse-hubzilla-3efe144fa0c455529a3f6244557d1253885134cf.tar.bz2
volse-hubzilla-3efe144fa0c455529a3f6244557d1253885134cf.zip
revisit media breakpoints - do not switch to mobile view to early.
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 026036300..ddd876689 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -451,20 +451,20 @@ function NavUpdate() {
updateCountsOnly = false;
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);
+ $('.notifications-btn').css('opacity', 1);
}
else {
- $('#notifications-btn').css('opacity', 0.5);
+ $('.notifications-btn').css('opacity', 0.5);
$('#navbar-collapse-1').removeClass('show');
}
if(data.home || data.intros || data.register || data.mail || data.notify || data.files) {
- $('#notifications-btn-icon').removeClass('fa-exclamation-circle');
- $('#notifications-btn-icon').addClass('fa-exclamation-triangle');
+ $('.notifications-btn-icon').removeClass('fa-exclamation-circle');
+ $('.notifications-btn-icon').addClass('fa-exclamation-triangle');
}
if(!data.home && !data.intros && !data.register && !data.mail && !data.notify && !data.files) {
- $('#notifications-btn-icon').removeClass('fa-exclamation-triangle');
- $('#notifications-btn-icon').addClass('fa-exclamation-circle');
+ $('.notifications-btn-icon').removeClass('fa-exclamation-triangle');
+ $('.notifications-btn-icon').addClass('fa-exclamation-circle');
}
$.each(data, function(index, item) {