From c1ce19c80962338a764683dda584c39b050f620a Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 19 Jul 2014 17:01:43 -0700 Subject: [PATCH] fix selection of gallery image by clicking thumbnail --- src/Images/Gallery.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 9f7cef9a0..56f341214 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -77,7 +77,7 @@ Gallery = nodes.current.parentElement.scrollTop = 0 Gallery.cb.open.call if image - $ "[href='#{image.href.replace /https?:/, ''}']", nodes.thumbs + $ "[href='#{image.href}']", nodes.thumbs else Gallery.images[0]