diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-12-22 14:55:05 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-12-22 14:55:05 +0100 |
commit | 6cb527a9375fa1697470cc11d2ba6ccf1acae886 (patch) | |
tree | b592e23e5c245f7846dd956de71b93ba63f35039 /view | |
parent | 2ce6d47519e4f8d2b24c721a812c8826ac9c1c7a (diff) | |
download | volse-hubzilla-6cb527a9375fa1697470cc11d2ba6ccf1acae886.tar.gz volse-hubzilla-6cb527a9375fa1697470cc11d2ba6ccf1acae886.tar.bz2 volse-hubzilla-6cb527a9375fa1697470cc11d2ba6ccf1acae886.zip |
a cleaner way to work around browser bugs
Diffstat (limited to 'view')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 5691a40d0..f97467947 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -14,7 +14,6 @@ $(document).ready(function() { } }); } - $('#css3-calc').remove(); // Remove the test element $('#left_aside_wrapper').stick_in_parent({ @@ -96,15 +95,13 @@ function toggleAside() { if($('main').hasClass('region_1-on')){ $('main').removeClass('region_1-on') $('#overlay').remove(); + $('#left_aside_wrapper').trigger("sticky_kit:detach"); } else { $('main').addClass('region_1-on') $('<div id="overlay"></div>').appendTo('section'); + $('#left_aside_wrapper').stick_in_parent({ + offset_top: $('nav').outerHeight(true) + }); } - - $(window).scroll(); - // work around a bug where a browser seems to not trigger scroll with $(window).scroll() - var scrollpos = $(window).scrollTop(); - $(window).scrollTop(scrollpos - 1); - setTimeout(function(){ $(window).scrollTop(scrollpos) }, 100); } |