Do not try to reload the picture immediately from archivers; if it fails to load from archivers, try to load

from 4chan again.
This commit is contained in:
Nicolas Stepien 2012-01-19 20:31:36 +01:00
parent 8313c05195
commit 0ccacc490f
2 changed files with 4 additions and 4 deletions

View File

@ -3023,8 +3023,8 @@
thumb = this.previousSibling;
imgExpand.contract(thumb);
src = this.src.split('/');
if (url = redirect.image(src[3], src[5])) {
return imgExpand.expand(thumb, url);
if (src[2] === 'images.4chan.org' && (url = redirect.image(src[3], src[5]))) {
return setTimeout(imgExpand.expand, 10000, thumb, url);
} else if (engine === 'webkit') {
return req = $.ajax(this.src, (function() {
if (this.status !== 404) {

View File

@ -2340,8 +2340,8 @@ imgExpand =
thumb = @previousSibling
imgExpand.contract thumb
src = @src.split '/'
if url = redirect.image src[3], src[5]
imgExpand.expand thumb, url
if src[2] is 'images.4chan.org' and url = redirect.image src[3], src[5]
setTimeout imgExpand.expand, 10000, thumb, url
#navigator.online is not x-browser/os yet
else if engine is 'webkit'
req = $.ajax @src, (->