From b333936bf19cd2da6300ea2600ed222d6f2ebb2a Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 29 Sep 2016 14:17:40 -0700 Subject: [PATCH] Fix loading-deferred thumbs in gallery. --- src/Images/Gallery.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index ffaa98226..46d2a1e3c 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -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