aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-10 12:12:05 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-10 12:12:05 +0200
commit4bb16b18edd15cdeace1ebc4ac31ea7a8432d3cc (patch)
tree2a64ce9a2a872736d585dfcba161d4ead5b2b1a5 /view
parent4cc413cdaf8a2ce1245fcfbfaae08977e3b836b9 (diff)
downloadvolse-hubzilla-4bb16b18edd15cdeace1ebc4ac31ea7a8432d3cc.tar.gz
volse-hubzilla-4bb16b18edd15cdeace1ebc4ac31ea7a8432d3cc.tar.bz2
volse-hubzilla-4bb16b18edd15cdeace1ebc4ac31ea7a8432d3cc.zip
cover photo: mior issue and more cleanup
Diffstat (limited to 'view')
-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() {