From f07a0a169427b9e9880d90d862418b3a5543513b Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sat, 24 Aug 2013 14:04:50 -0700 Subject: [PATCH] Gallery.thumbs > Gallery.nodes.thumbs --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/Images/Gallery.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 5f311a111..8f3d0882e 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -6617,7 +6617,7 @@ $.add(d.body, dialog); nodes.thumbs.scrollTop = 0; nodes.current.parentElement.scrollTop = 0; - Gallery.cb.open.call(image ? $("[href='" + (image.href.replace(/https?:/, '')) + "']", Gallery.thumbs) : Gallery.images[0]); + Gallery.cb.open.call(image ? $("[href='" + (image.href.replace(/https?:/, '')) + "']", nodes.thumbs) : Gallery.images[0]); d.body.style.overflow = 'hidden'; return nodes.total.textContent = --i; }, diff --git a/builds/crx/script.js b/builds/crx/script.js index 7fec01b23..613ef3d3d 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -6602,7 +6602,7 @@ $.add(d.body, dialog); nodes.thumbs.scrollTop = 0; nodes.current.parentElement.scrollTop = 0; - Gallery.cb.open.call(image ? $("[href='" + (image.href.replace(/https?:/, '')) + "']", Gallery.thumbs) : Gallery.images[0]); + Gallery.cb.open.call(image ? $("[href='" + (image.href.replace(/https?:/, '')) + "']", nodes.thumbs) : Gallery.images[0]); d.body.style.overflow = 'hidden'; return nodes.total.textContent = --i; }, diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index ddd726dd0..98a66d347 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -96,7 +96,7 @@ Gallery = nodes.current.parentElement.scrollTop = 0 Gallery.cb.open.call if image - $ "[href='#{image.href.replace /https?:/, ''}']", Gallery.thumbs + $ "[href='#{image.href.replace /https?:/, ''}']", nodes.thumbs else Gallery.images[0]