From 673a2f67f16c00042aaf1394e42e88e2ad4dc20b Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 6 Sep 2018 10:08:55 +0200 Subject: sticky-kit: improve handling --- view/php/default.php | 4 ++-- view/theme/redbasic/js/redbasic.js | 18 ++---------------- 2 files changed, 4 insertions(+), 18 deletions(-) (limited to 'view') diff --git a/view/php/default.php b/view/php/default.php index 06cecc56f..70b8daecf 100644 --- a/view/php/default.php +++ b/view/php/default.php @@ -10,12 +10,12 @@
- +
- +
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index c905c92cb..70d196a02 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -18,26 +18,12 @@ $(document).ready(function() { $('#css3-calc').remove(); // Remove the test element if($(window).width() >= 992) { - $('#left_aside_wrapper').stick_in_parent({ - offset_top: parseInt($('aside').css('padding-top')), - parent: 'main', - spacer: '#left_aside_spacer' - }); - } - - if($(window).width() >= 992) { - $('#right_aside_wrapper').stick_in_parent({ + $('#left_aside_wrapper, #right_aside_wrapper').stick_in_parent({ offset_top: parseInt($('aside').css('padding-top')), - parent: 'main', - spacer: '#right_aside_spacer' + parent: 'main' }); } - - $('#notifications_wrapper.fs #notifications').stick_in_parent({ - parent: '#notifications_wrapper' - }); - $('#expand-aside').on('click', toggleAside); $('section').on('click', function() { -- cgit v1.2.3