diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-09 15:15:02 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-09 15:15:02 -0700 |
commit | d636ff586d5f7e8d86a05a1e391b4501eb5f29f2 (patch) | |
tree | 729734bfc3c662b36c4a0a4e1735f5ce87eb2aba /view/theme/redbasic/js/redbasic.js | |
parent | 623dfa13845e34c85eae2a66c6aa855c3e059c38 (diff) | |
parent | cc1ffff7cdfe5881636b6d2de3fe16f0094b5d69 (diff) | |
download | volse-hubzilla-d636ff586d5f7e8d86a05a1e391b4501eb5f29f2.tar.gz volse-hubzilla-d636ff586d5f7e8d86a05a1e391b4501eb5f29f2.tar.bz2 volse-hubzilla-d636ff586d5f7e8d86a05a1e391b4501eb5f29f2.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index c67c67a51..3fa9d2a76 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -22,13 +22,13 @@ $(document).ready(function() { parent: 'main', spacer: '#left_aside_spacer' }); + $('#right_aside_wrapper').stick_in_parent({ + offset_top: parseInt($('#region_3').css('padding-top')), + parent: 'main', + spacer: '#right_aside_spacer' + }); } - 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 +64,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'); } |