|
@@ -2594,12 +2594,32 @@ $(document).ready(function(){
|
2594
|
2594
|
$(this).parents('li.top_menu_element').find('ul.submenu').hide();
|
2595
|
2595
|
$(this).parents('li.top_menu_element').removeClass('close');
|
2596
|
2596
|
$(this).parents('li.top_menu_element').addClass('open');
|
2597
|
|
- $(this).parents('li.top_menu_element').find('ul.submenu').slideDown();
|
|
2597
|
+ $(this).parents('li.top_menu_element').find('ul.submenu').slideDown('500', function(){
|
|
2598
|
+ if ($('.sidebar').css('position') == 'absolute')
|
|
2599
|
+ {
|
|
2600
|
+ contentHeight = $('.content').height();
|
|
2601
|
+ sidebarHeight = $('.sidebar').outerHeight();
|
|
2602
|
+ //$('.sidebar').css('top', contentHeight - sidebarHeight);
|
|
2603
|
+ $(".sidebar").animate({
|
|
2604
|
+ top: contentHeight - sidebarHeight,
|
|
2605
|
+ }, 500 );
|
|
2606
|
+ }
|
|
2607
|
+ });
|
2598
|
2608
|
}
|
2599
|
2609
|
else
|
2600
|
2610
|
{
|
2601
|
2611
|
$(this).parents('li.top_menu_element').removeClass('open');
|
2602
|
2612
|
$(this).parents('li.top_menu_element').addClass('close');
|
|
2613
|
+
|
|
2614
|
+ if ($('.sidebar').css('position') == 'absolute')
|
|
2615
|
+ {
|
|
2616
|
+ contentHeight = $('.content').height();
|
|
2617
|
+ sidebarHeight = $('.sidebar').outerHeight();
|
|
2618
|
+ //$('.sidebar').css('top', contentHeight - sidebarHeight);
|
|
2619
|
+ $(".sidebar").animate({
|
|
2620
|
+ top: contentHeight - sidebarHeight,
|
|
2621
|
+ }, 500 );
|
|
2622
|
+ }
|
2603
|
2623
|
}
|
2604
|
2624
|
|
2605
|
2625
|
return false;
|
|
@@ -3276,12 +3296,10 @@ $(document).ready(function(){
|
3276
|
3296
|
if ($('#sidebar .sidebar').height() < $('#content .content').height() &&
|
3277
|
3297
|
$('#sidebar .sidebar').height() > $(window).height())
|
3278
|
3298
|
{
|
3279
|
|
- console.log('sticky sidebar');
|
3280
|
3299
|
$('#content').stickySidebar();
|
3281
|
3300
|
}
|
3282
|
3301
|
else
|
3283
|
3302
|
{
|
3284
|
|
- console.log('sticky tout court');
|
3285
|
3303
|
$('#sidebar .sidebar').css('padding-bottom', '155px');
|
3286
|
3304
|
$("#sidebar .sidebar").sticky({topSpacing:25});
|
3287
|
3305
|
}
|