From b29e121113a588d88b3d8f4265bece2c5e997cef Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 25 Feb 2021 12:55:19 +0000 Subject: replace sticky_kit with a simpler homwgrown solution (still a bit raw) and slightly change the way we load new content so that people with a long aside column do not have to scroll all the way to the bottom for loading the next page --- view/tpl/directory_header.tpl | 3 ++- view/tpl/notes.tpl | 1 - view/tpl/notifications_widget.tpl | 4 ++-- view/tpl/photo_album.tpl | 5 +++-- view/tpl/photos_recent.tpl | 5 +++-- view/tpl/viewcontact_template.tpl | 3 ++- 6 files changed, 12 insertions(+), 9 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/directory_header.tpl b/view/tpl/directory_header.tpl index 3ee9ee326..568e03cd0 100644 --- a/view/tpl/directory_header.tpl +++ b/view/tpl/directory_header.tpl @@ -16,7 +16,8 @@ {{foreach $entries as $entry}} {{include file="direntry.tpl"}} {{/foreach}} -
+ {{** make sure this element is at the bottom - we rely on that in endless scroll **}} +
diff --git a/view/tpl/notes.tpl b/view/tpl/notes.tpl index 67da5ff37..4bee02aa0 100644 --- a/view/tpl/notes.tpl +++ b/view/tpl/notes.tpl @@ -16,7 +16,6 @@ $(document).ready(function(e){ noteText.on('change keyup keydown paste cut', function () { noteText.height(0).height(noteText[0].scrollHeight); - $(document.body).trigger("sticky_kit:recalc"); }).change(); }); diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 1a24ca7c4..1092bc155 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -137,7 +137,7 @@ } -
+
{{$no_notifications}}...
@@ -154,7 +154,7 @@ {10} {2} - +
{{$upload_form}} {{$album_edit.1}} -
+
diff --git a/view/tpl/photos_recent.tpl b/view/tpl/photos_recent.tpl index 1e2f22e33..63c8b3515 100644 --- a/view/tpl/photos_recent.tpl +++ b/view/tpl/photos_recent.tpl @@ -9,12 +9,13 @@
{{$upload_form}} -
+
diff --git a/view/tpl/viewcontact_template.tpl b/view/tpl/viewcontact_template.tpl index 005fe17ce..cbbf3a97c 100644 --- a/view/tpl/viewcontact_template.tpl +++ b/view/tpl/viewcontact_template.tpl @@ -6,7 +6,8 @@ {{foreach $contacts as $contact}} {{include file="contact_template.tpl"}} {{/foreach}} -
+ {{** make sure this element is at the bottom - we rely on that in endless scroll **}} +
-- cgit v1.2.3