Fix loading-deferred thumbs in gallery.
This commit is contained in:
parent
7e3b24e575
commit
b333936bf1
@ -123,6 +123,10 @@ Gallery =
|
|||||||
|
|
||||||
thumbImg = post.file.thumb.cloneNode false
|
thumbImg = post.file.thumb.cloneNode false
|
||||||
thumbImg.style.cssText = ''
|
thumbImg.style.cssText = ''
|
||||||
|
if thumbImg.dataset.src
|
||||||
|
thumbImg.src = thumbImg.dataset.src
|
||||||
|
# XXX https://bugzilla.mozilla.org/show_bug.cgi?id=1021289
|
||||||
|
thumbImg.removeAttribute 'data-src'
|
||||||
$.add thumb, thumbImg
|
$.add thumb, thumbImg
|
||||||
|
|
||||||
$.on thumb, 'click', Gallery.cb.open
|
$.on thumb, 'click', Gallery.cb.open
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user