fix Advance on Contract

This commit is contained in:
ccd0 2014-07-27 15:50:06 -07:00
parent 7f5faea469
commit f8cbbb749d

View File

@ -88,6 +88,8 @@ ImageExpand =
ImageExpand.expand post
return
ImageExpand.contract post
# Scroll back to the thumbnail when contracting the image
# to avoid being left miles away from the relevant post.
{root} = post.nodes
@ -110,7 +112,6 @@ ImageExpand =
if left < 0
x = -window.scrollX
window.scrollBy x, y if x or y
ImageExpand.contract post
contract: (post) ->
{file} = post