From 6bab577e14b3a3f738868644fd468ffab9cd20aa Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 16 Aug 2014 13:47:13 -0700 Subject: [PATCH] Revert "don't scroll to post when initially opening gallery" This reverts commit 432f1c4b36b16e121cdb416890a12a9f0db6e2f7. --- src/Images/Gallery.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index bc5f85d57..3fee30f76 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -114,7 +114,7 @@ Gallery = Gallery.images.push thumb $.add Gallery.nodes.thumbs, thumb - open: (thumb, scroll) -> + open: (thumb) -> {nodes} = Gallery {name} = nodes oldID = +nodes.current.dataset.id @@ -151,7 +151,7 @@ Gallery = Gallery.cb.stop() # Scroll to post - if scroll and post = (post = g.posts[file.dataset.post])?.nodes.root + if Conf['Scroll to Post'] and post = (post = g.posts[file.dataset.post])?.nodes.root Header.scrollTo post # Center selected thumbnail @@ -218,7 +218,7 @@ Gallery = open: (e) -> e.preventDefault() if e - if @ then Gallery.open @, Conf['Scroll to Post'] + if @ then Gallery.open @ image: (e) -> e.preventDefault()