Set to retry after one second unless the thread 404'd.

This commit is contained in:
Nicolas Stepien 2011-09-22 20:25:19 +02:00
parent f90c12dc83
commit 79b0c85d72
2 changed files with 5 additions and 2 deletions

View File

@ -2732,7 +2732,9 @@
$.bind(img, 'error', function(e) {
thumb = this.previousSibling;
imgExpand.contract(thumb);
return imgExpand.expand(thumb);
if (!g.dead) {
return setTimeout(imgExpand.expand, 1000, thumb);
}
});
return $.add(a, img);
},

View File

@ -2025,7 +2025,8 @@ imgExpand =
$.bind img, 'error', (e) ->
thumb = @previousSibling
imgExpand.contract thumb
imgExpand.expand thumb
unless g.dead
setTimeout imgExpand.expand, 1000, thumb
$.add a, img
dialog: ->