aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js/redbasic.js
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-10-09 15:14:44 -0700
committerzotlabs <mike@macgirvin.com>2017-10-09 15:14:44 -0700
commit87970491441cb15462d3fe7a7641d2f2755cb45b (patch)
tree455abf25ed534ddcadfd595f3484c4ef6ff74a2a /view/theme/redbasic/js/redbasic.js
parent09009d4b32d5014d77de941dba695fe2bc577616 (diff)
parentcc1ffff7cdfe5881636b6d2de3fe16f0094b5d69 (diff)
downloadvolse-hubzilla-87970491441cb15462d3fe7a7641d2f2755cb45b.tar.gz
volse-hubzilla-87970491441cb15462d3fe7a7641d2f2755cb45b.tar.bz2
volse-hubzilla-87970491441cb15462d3fe7a7641d2f2755cb45b.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r--view/theme/redbasic/js/redbasic.js18
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');
}