Opera will always retry unless the thread died.
This commit is contained in:
parent
fe45fcb4f0
commit
d955ef0e0e
@ -2737,12 +2737,16 @@
|
|||||||
var req, thumb;
|
var req, thumb;
|
||||||
thumb = this.previousSibling;
|
thumb = this.previousSibling;
|
||||||
imgExpand.contract(thumb);
|
imgExpand.contract(thumb);
|
||||||
req = $.ajax(this.src, null, 'head');
|
if (navigator.appName !== 'Opera') {
|
||||||
return req.onreadystatechange = function(e) {
|
req = $.ajax(this.src, null, 'head');
|
||||||
if (this.status !== 404) {
|
return req.onreadystatechange = function(e) {
|
||||||
return setTimeout(imgExpand.retry, 10000, thumb);
|
if (this.status !== 404) {
|
||||||
}
|
return setTimeout(imgExpand.retry, 10000, thumb);
|
||||||
};
|
}
|
||||||
|
};
|
||||||
|
} else if (!g.dead) {
|
||||||
|
return setTimeout(imgExpand.retry, 10000, thumb);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
retry: function(thumb) {
|
retry: function(thumb) {
|
||||||
if (!thumb.hidden) {
|
if (!thumb.hidden) {
|
||||||
|
|||||||
@ -2026,8 +2026,11 @@ imgExpand =
|
|||||||
thumb = @previousSibling
|
thumb = @previousSibling
|
||||||
imgExpand.contract thumb
|
imgExpand.contract thumb
|
||||||
#navigator.online is not x-browser/os yet
|
#navigator.online is not x-browser/os yet
|
||||||
req = $.ajax @src, null, 'head'
|
if navigator.appName isnt 'Opera'
|
||||||
req.onreadystatechange = (e) -> setTimeout imgExpand.retry, 10000, thumb if @status isnt 404
|
req = $.ajax @src, null, 'head'
|
||||||
|
req.onreadystatechange = (e) -> setTimeout imgExpand.retry, 10000, thumb if @status isnt 404
|
||||||
|
else unless g.dead
|
||||||
|
setTimeout imgExpand.retry, 10000, thumb
|
||||||
retry: (thumb) ->
|
retry: (thumb) ->
|
||||||
imgExpand.expand thumb unless thumb.hidden
|
imgExpand.expand thumb unless thumb.hidden
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user