automatically reload pictures
This commit is contained in:
parent
999ea6e0f7
commit
07ecbda653
@ -2727,6 +2727,11 @@
|
||||
_ref = filesize.textContent.match(/(\d+)x/), _ = _ref[0], max = _ref[1];
|
||||
img.style.maxWidth = "-moz-calc(" + max + "px)";
|
||||
}
|
||||
$.bind(img, 'error', function(e) {
|
||||
thumb = this.previousSibling;
|
||||
imgExpand.contract(thumb);
|
||||
return imgExpand.expand(thumb);
|
||||
});
|
||||
return $.add(a, img);
|
||||
},
|
||||
dialog: function() {
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
master
|
||||
- mayhem
|
||||
initiate 4chan X earlier
|
||||
automatically reload expanded pictures on error
|
||||
|
||||
2.20.1
|
||||
- mayhem
|
||||
|
||||
@ -2018,6 +2018,10 @@ imgExpand =
|
||||
filesize = $ 'span.filesize', a.parentNode
|
||||
[_, max] = filesize.textContent.match /(\d+)x/
|
||||
img.style.maxWidth = "-moz-calc(#{max}px)"
|
||||
$.bind img, 'error', (e) ->
|
||||
thumb = @previousSibling
|
||||
imgExpand.contract thumb
|
||||
imgExpand.expand thumb
|
||||
$.add a, img
|
||||
|
||||
dialog: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user