diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-11-19 21:41:45 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-11-19 21:41:45 +0100 |
commit | 3efe144fa0c455529a3f6244557d1253885134cf (patch) | |
tree | d3f8b9bf3da6da75fcacc3cd7881ecefdf605a3e /view/js | |
parent | 744960d36d636f8840f8bcea13283ea7f97cc4e6 (diff) | |
download | volse-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')
-rw-r--r-- | view/js/main.js | 12 |
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) { |