From 6d427f6a744dff083cb7db3bd0a4b979837f08d2 Mon Sep 17 00:00:00 2001 From: name Date: Sun, 10 Dec 2017 13:05:25 -0800 Subject: [PATCH] Tinyboard compatibility for Gallery. --- src/Images/Gallery.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 8f1a9e9ef..3e8aae6db 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -82,8 +82,8 @@ Gallery = $.on window, 'resize', Gallery.cb.setHeight - for file in $$ '.post .file' - post = Get.postFromNode file + for postThumb in $$ Site.selectors.file.thumb + post = Get.postFromNode postThumb continue unless post.file?.thumb Gallery.generateThumb post # If no image to open is given, pick image we have scrolled to.