diff --git a/view/js/main.js b/view/js/main.js index 186cefbd0..6557b1d8e 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -445,10 +445,10 @@ 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, #notifications-btn-1').css('opacity', 1); } else { - $('#notifications-btn').css('opacity', 0.5); + $('#notifications-btn, #notifications-btn-1').css('opacity', 0.5); $('#navbar-collapse-1').removeClass('show'); } diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index c67c67a51..257e7cfb6 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -24,11 +24,6 @@ $(document).ready(function() { }); } - if(($(window).width() < 767) && ($('#left_aside_wrapper .widget, #left_aside_wrapper .vcard').length > 0)) - $('#expand-aside').show(); - else - $('#expand-aside').hide(); - $('#expand-aside').on('click', toggleAside); $('section').on('click', function() { @@ -64,8 +59,14 @@ $(document).ready(function() { } }); + var notifications_parent = $('#notifications')[0].parentElement.id; $('#notifications-btn-1').click(function() { - $('#region_3').toggleClass('fs'); + if($('#notifications').hasClass('fs')) + $('#notifications').prependTo('#' + notifications_parent); + else + $('#notifications').prependTo('body'); + + $('#notifications').toggleClass('fs'); if($('#navbar-collapse-2').hasClass('show')){ $('#navbar-collapse-2').removeClass('show'); } diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index a19fa15a1..bbc5b4fb0 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -53,6 +53,9 @@ {{/if}} + {{/if}}