From 4bb16b18edd15cdeace1ebc4ac31ea7a8432d3cc Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 10 Sep 2018 12:12:05 +0200 Subject: cover photo: mior issue and more cleanup --- view/tpl/cover_photo_widget.tpl | 8 +++----- 1 file 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() { -- cgit v1.2.3