diff --git a/LICENSE b/LICENSE index ebafaff4d..fdee9500e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* appchan x - Version 2.9.31 - 2014-07-27 +* appchan x - Version 2.9.31 - 2014-07-28 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 802cda866..bced1b990 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -28,7 +28,7 @@ // ==/UserScript== /* -* appchan x - Version 2.9.31 - 2014-07-27 +* appchan x - Version 2.9.31 - 2014-07-28 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -10513,7 +10513,7 @@ $.add(d.body, dialog); nodes.thumbs.scrollTop = 0; nodes.current.parentElement.scrollTop = 0; - Gallery.cb.open.call(image ? $("[href='" + (image.href.replace(/https?:/, '')) + "']", nodes.thumbs) : Gallery.images[0]); + Gallery.cb.open.call(image ? $("[href*='" + image.pathname + "']", 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 eac91e091..b1b111a63 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* appchan x - Version 2.9.31 - 2014-07-27 +* appchan x - Version 2.9.31 - 2014-07-28 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -10541,7 +10541,7 @@ $.add(d.body, dialog); nodes.thumbs.scrollTop = 0; nodes.current.parentElement.scrollTop = 0; - Gallery.cb.open.call(image ? $("[href='" + (image.href.replace(/https?:/, '')) + "']", nodes.thumbs) : Gallery.images[0]); + Gallery.cb.open.call(image ? $("[href*='" + image.pathname + "']", 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 7c2c71251..503fd2e49 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -91,7 +91,7 @@ Gallery = nodes.current.parentElement.scrollTop = 0 Gallery.cb.open.call if image - $ "[href='#{image.href.replace /https?:/, ''}']", nodes.thumbs + $ "[href*='#{image.pathname}']", nodes.thumbs else Gallery.images[0]