Tinyboard compatibility for Gallery.
This commit is contained in:
parent
077d735292
commit
6d427f6a74
@ -82,8 +82,8 @@ Gallery =
|
|||||||
|
|
||||||
$.on window, 'resize', Gallery.cb.setHeight
|
$.on window, 'resize', Gallery.cb.setHeight
|
||||||
|
|
||||||
for file in $$ '.post .file'
|
for postThumb in $$ Site.selectors.file.thumb
|
||||||
post = Get.postFromNode file
|
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