Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2022-11-01 23:17:37 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2022-11-01 23:20:12 +0300
commit5f6b01e086a012b401f09e19224f3942912289df (patch)
tree636a28c5023ec54a9f484f3a487785a22a3481cf
parent80c088817620b50a59eb9581e6bfd8da04da4e5a (diff)
parent35c254c88c086bd457b642b9e517625174026548 (diff)
Merge pull request #8404 from Flaburgan/8118-scrolling-photos
Do not recreate blueimp each time you're scrolling in the photos page
-rw-r--r--Changelog.md2
-rw-r--r--app/assets/javascripts/app/views/photos_view.js9
2 files changed, 3 insertions, 8 deletions
diff --git a/Changelog.md b/Changelog.md
index c122d358f..894ea1231 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -55,6 +55,7 @@ We use yarn to install the frontend dependencies now, so you need to have that i
* Add redirect from mobile UI photo URLs to post when not using mobile UI [#8400](https://github.com/diaspora/diaspora/pull/8400)
* Escape mentions before markdown parsing in mobile UI [#8398](https://github.com/diaspora/diaspora/pull/8398)
* Cleanup duplicate pods in database [#8403](https://github.com/diaspora/diaspora/pull/8403)
+* Fix scrolling issue after closing photo viewer on photos page [#8404](https://github.com/diaspora/diaspora/pull/8404)
## Features
* Add client-side cropping of profile image uploads [#7581](https://github.com/diaspora/diaspora/pull/7581)
@@ -66,6 +67,7 @@ We use yarn to install the frontend dependencies now, so you need to have that i
* Add support for webp images and convert new png/jpg to webp to save space and bandwidth [#8358](https://github.com/diaspora/diaspora/pull/8358)
* Show total and active pods count in the pods list for podmins [#8383](https://github.com/diaspora/diaspora/pull/8383)
* Allow to select multiple aspects when posting on mobile [#8217](https://github.com/diaspora/diaspora/pull/8217)
+* Add info links to drawer in mobile UI [#8405](https://github.com/diaspora/diaspora/pull/8405)
# 0.7.18.1
diff --git a/app/assets/javascripts/app/views/photos_view.js b/app/assets/javascripts/app/views/photos_view.js
index 7390a357c..14d484dd9 100644
--- a/app/assets/javascripts/app/views/photos_view.js
+++ b/app/assets/javascripts/app/views/photos_view.js
@@ -2,23 +2,16 @@
app.views.Photos = app.views.InfScroll.extend({
className: "clearfix row",
-
postClass : app.views.Photo,
initialize : function() {
this.stream = this.model;
this.collection = this.stream.items;
+ new app.views.Gallery({el: this.$el});
// viable for extraction
this.stream.fetch();
this.setupInfiniteScroll();
- },
-
- postRenderTemplate: function(){
- var photoAttachments = $("#main-stream > div");
- if(photoAttachments.length > 0) {
- new app.views.Gallery({ el: photoAttachments });
- }
}
});
// @license-end