Fix loading-deferred thumbs in gallery.

This commit is contained in:
ccd0 2016-09-29 14:17:40 -07:00
parent 7e3b24e575
commit b333936bf1

View File

@ -123,6 +123,10 @@ Gallery =
thumbImg = post.file.thumb.cloneNode false
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
$.on thumb, 'click', Gallery.cb.open