Skip thumbnails not in a post (e.g. cached threads in vichan overboard infinite scroll).
This commit is contained in:
parent
9f8ee7a126
commit
179888d663
@ -83,7 +83,7 @@ Gallery =
|
|||||||
$.on window, 'resize', Gallery.cb.setHeight
|
$.on window, 'resize', Gallery.cb.setHeight
|
||||||
|
|
||||||
for postThumb in $$ Site.selectors.file.thumb
|
for postThumb in $$ Site.selectors.file.thumb
|
||||||
post = Get.postFromNode postThumb
|
continue unless (post = Get.postFromNode postThumb)
|
||||||
continue unless post.file?.thumb
|
continue unless post.file?.thumb
|
||||||
Gallery.generateThumb post
|
Gallery.generateThumb post
|
||||||
# If no image to open is given, pick image we have scrolled to.
|
# If no image to open is given, pick image we have scrolled to.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user