Fix do-nothing assignment to post.

This commit is contained in:
ccd0 2015-06-05 12:20:18 -07:00
parent 7d41924d20
commit d7b84817b0

View File

@ -170,8 +170,8 @@ Gallery =
Gallery.cb.stop()
# Scroll to post
if Conf['Scroll to Post'] and post = (post = g.posts[file.dataset.post])?.nodes.root
Header.scrollTo post
if Conf['Scroll to Post'] and (post = g.posts[file.dataset.post])
Header.scrollTo post.nodes.root
# Center selected thumbnail
nodes.thumbs.scrollTop = thumb.offsetTop + thumb.offsetHeight/2 - nodes.thumbs.clientHeight/2