sticky-kit: improve handling

This commit is contained in:
Mario Vavti
2018-09-06 10:08:55 +02:00
parent ea381d9180
commit 673a2f67f1
2 changed files with 4 additions and 18 deletions

View File

@@ -18,26 +18,12 @@ $(document).ready(function() {
$('#css3-calc').remove(); // Remove the test element
if($(window).width() >= 992) {
$('#left_aside_wrapper').stick_in_parent({
$('#left_aside_wrapper, #right_aside_wrapper').stick_in_parent({
offset_top: parseInt($('aside').css('padding-top')),
parent: 'main',
spacer: '#left_aside_spacer'
parent: 'main'
});
}
if($(window).width() >= 992) {
$('#right_aside_wrapper').stick_in_parent({
offset_top: parseInt($('aside').css('padding-top')),
parent: 'main',
spacer: '#right_aside_spacer'
});
}
$('#notifications_wrapper.fs #notifications').stick_in_parent({
parent: '#notifications_wrapper'
});
$('#expand-aside').on('click', toggleAside);
$('section').on('click', function() {