aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/cover_photo_widget.tpl
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2021-04-05 23:15:01 -0700
committernobody <nobody@zotlabs.com>2021-04-05 23:15:01 -0700
commit9359fc065c72243bd85f0fc3db842976f07183cc (patch)
tree37551feefe6fff472b9c346a7a8c3cd9080d8946 /view/tpl/cover_photo_widget.tpl
parent878be8fff0328ee4ab978de20e7e385244ac54ec (diff)
parent19daadbfd7f281e27dffdc53d0e8ebeb837e1ae3 (diff)
downloadvolse-hubzilla-9359fc065c72243bd85f0fc3db842976f07183cc.tar.gz
volse-hubzilla-9359fc065c72243bd85f0fc3db842976f07183cc.tar.bz2
volse-hubzilla-9359fc065c72243bd85f0fc3db842976f07183cc.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'view/tpl/cover_photo_widget.tpl')
-rw-r--r--view/tpl/cover_photo_widget.tpl11
1 files changed, 9 insertions, 2 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl
index 7739d24b8..7333f2d4c 100644
--- a/view/tpl/cover_photo_widget.tpl
+++ b/view/tpl/cover_photo_widget.tpl
@@ -31,6 +31,10 @@
});
$(window).scroll(function () {
+ if(! $('#cover-photo').length) {
+ return;
+ }
+
if($(window).scrollTop() >= cover_height) {
coverHiddenActions();
coverSlid = true;
@@ -52,12 +56,15 @@
});
$(window).resize(function () {
+ if(! $('#cover-photo').length) {
+ return;
+ }
+
cover_height = Math.ceil($(window).width()/2.75862069);
$('#cover-photo').css('height', cover_height + 'px');
if($(window).width() < 755) {
$('#cover-photo').remove();
- $('.navbar').addClass('fixed-top');
- $('main').css('opacity', 1);
+ coverHiddenActions();
coverSlid = true;
}