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:
authorflaburgan <flaburgan@geexxx.fr>2022-10-31 13:21:08 +0300
committerflaburgan <flaburgan@geexxx.fr>2022-10-31 13:21:08 +0300
commit35c254c88c086bd457b642b9e517625174026548 (patch)
tree5cd7680a282d5507c315c784b7cc12fd997f4edc
parentbfe1b84a2e5963a6ff516f90579047040263a390 (diff)
Do not recreate blueimp each time you're scrolling in the photos page, fixes #8118
-rw-r--r--app/assets/javascripts/app/views/photos_view.js9
1 files changed, 1 insertions, 8 deletions
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