diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-10 12:12:05 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-10 12:12:05 +0200 |
commit | 4bb16b18edd15cdeace1ebc4ac31ea7a8432d3cc (patch) | |
tree | 2a64ce9a2a872736d585dfcba161d4ead5b2b1a5 /view/tpl/cover_photo_widget.tpl | |
parent | 4cc413cdaf8a2ce1245fcfbfaae08977e3b836b9 (diff) | |
download | volse-hubzilla-4bb16b18edd15cdeace1ebc4ac31ea7a8432d3cc.tar.gz volse-hubzilla-4bb16b18edd15cdeace1ebc4ac31ea7a8432d3cc.tar.bz2 volse-hubzilla-4bb16b18edd15cdeace1ebc4ac31ea7a8432d3cc.zip |
cover photo: mior issue and more cleanup
Diffstat (limited to 'view/tpl/cover_photo_widget.tpl')
-rwxr-xr-x | view/tpl/cover_photo_widget.tpl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl index a7d4e52ea..7739d24b8 100755 --- a/view/tpl/cover_photo_widget.tpl +++ b/view/tpl/cover_photo_widget.tpl @@ -31,7 +31,7 @@ }); $(window).scroll(function () { - if($(window).scrollTop() > cover_height) { + if($(window).scrollTop() >= cover_height) { coverHiddenActions(); coverSlid = true; } @@ -42,10 +42,7 @@ } else { if($(window).scrollTop() < cover_height) { - $('body').css('cursor', 'n-resize'); - $('.navbar').removeClass('fixed-top'); - $('main').css('margin-top', - $('nav').outerHeight(true) + 'px'); - $('main').css('opacity', 0); + coverVisibleActions(); } } } @@ -79,6 +76,7 @@ return; } window.scrollTo(0, cover_height); + return; } function coverVisibleActions() { |