Gallery fix

This commit is contained in:
Zixaphir 2014-07-28 04:18:43 -07:00
parent b36a7df1e6
commit 4ff134e060
4 changed files with 6 additions and 6 deletions

View File

@ -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. * Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE * https://github.com/zixaphir/appchan-x/blob/master/LICENSE

View File

@ -28,7 +28,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* appchan x - Version 2.9.31 - 2014-07-27 * appchan x - Version 2.9.31 - 2014-07-28
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE * https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -10513,7 +10513,7 @@
$.add(d.body, dialog); $.add(d.body, dialog);
nodes.thumbs.scrollTop = 0; nodes.thumbs.scrollTop = 0;
nodes.current.parentElement.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'; d.body.style.overflow = 'hidden';
return nodes.total.textContent = i; return nodes.total.textContent = i;
}, },

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // 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. * Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE * https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -10541,7 +10541,7 @@
$.add(d.body, dialog); $.add(d.body, dialog);
nodes.thumbs.scrollTop = 0; nodes.thumbs.scrollTop = 0;
nodes.current.parentElement.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'; d.body.style.overflow = 'hidden';
return nodes.total.textContent = i; return nodes.total.textContent = i;
}, },

View File

@ -91,7 +91,7 @@ Gallery =
nodes.current.parentElement.scrollTop = 0 nodes.current.parentElement.scrollTop = 0
Gallery.cb.open.call if image Gallery.cb.open.call if image
$ "[href='#{image.href.replace /https?:/, ''}']", nodes.thumbs $ "[href*='#{image.pathname}']", nodes.thumbs
else else
Gallery.images[0] Gallery.images[0]