Rewrite gallery condition correctly.

This commit is contained in:
ccd0 2015-02-06 19:22:16 -08:00
parent 8b90eee874
commit fd90b642bf

View File

@ -79,8 +79,9 @@ Gallery =
$.on d, 'keydown', cb.keybinds
$.off d, 'keydown', Keybinds.keydown if Conf['Keybinds']
for file in $$ '.post .file' when !$ '.fileDeletedRes, .fileDeleted', file
for file in $$ '.post .file'
post = Get.postFromNode file
continue unless post.file
Gallery.generateThumb post
# If no image to open is given, pick image we have scrolled to.
if !image and Gallery.fullIDs[post.fullID]