aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/cover_photo_widget.tpl8
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() {