fix selection of gallery image by clicking thumbnail

This commit is contained in:
ccd0 2014-07-19 17:01:43 -07:00
parent 582992a093
commit c1ce19c809

View File

@ -77,7 +77,7 @@ Gallery =
nodes.current.parentElement.scrollTop = 0 nodes.current.parentElement.scrollTop = 0
Gallery.cb.open.call if image Gallery.cb.open.call if image
$ "[href='#{image.href.replace /https?:/, ''}']", nodes.thumbs $ "[href='#{image.href}']", nodes.thumbs
else else
Gallery.images[0] Gallery.images[0]