This is causing more issues than it's preventing.

This commit is contained in:
Zixaphir 2014-05-03 06:44:01 -07:00
parent 7514ff41d4
commit 3254a1d232
3 changed files with 11 additions and 31 deletions

View File

@ -11191,17 +11191,10 @@
var el, isVideo, post, thumb; var el, isVideo, post, thumb;
post = $.hasClass(this, 'thumb') ? g.posts[this.parentNode.dataset.fullID] : Get.postFromNode(this); post = $.hasClass(this, 'thumb') ? g.posts[this.parentNode.dataset.fullID] : Get.postFromNode(this);
isVideo = post.file.isVideo; isVideo = post.file.isVideo;
if (post.file.fullImage) { el = $.el((isVideo ? 'video' : 'img'), {
el = post.file.fullImage; src: post.file.URL
el.className = ''; });
TrashQueue.remove(el); thumb = post.file.thumb;
} else {
el = $.el((isVideo ? 'video' : 'img'), {
src: post.file.URL
});
post.file.fullImage = el;
thumb = post.file.thumb;
}
if (d.body.contains(thumb)) { if (d.body.contains(thumb)) {
if (el !== thumb.nextSibling) { if (el !== thumb.nextSibling) {
$.after(thumb, el); $.after(thumb, el);

View File

@ -11217,17 +11217,10 @@
var el, isVideo, post, thumb; var el, isVideo, post, thumb;
post = $.hasClass(this, 'thumb') ? g.posts[this.parentNode.dataset.fullID] : Get.postFromNode(this); post = $.hasClass(this, 'thumb') ? g.posts[this.parentNode.dataset.fullID] : Get.postFromNode(this);
isVideo = post.file.isVideo; isVideo = post.file.isVideo;
if (post.file.fullImage) { el = $.el((isVideo ? 'video' : 'img'), {
el = post.file.fullImage; src: post.file.URL
el.className = ''; });
TrashQueue.remove(el); thumb = post.file.thumb;
} else {
el = $.el((isVideo ? 'video' : 'img'), {
src: post.file.URL
});
post.file.fullImage = el;
thumb = post.file.thumb;
}
if (d.body.contains(thumb)) { if (d.body.contains(thumb)) {
if (el !== thumb.nextSibling) { if (el !== thumb.nextSibling) {
$.after(thumb, el); $.after(thumb, el);

View File

@ -20,15 +20,9 @@ ImageHover =
else else
Get.postFromNode @ Get.postFromNode @
{isVideo} = post.file {isVideo} = post.file
if post.file.fullImage el = $.el (if isVideo then 'video' else 'img'),
el = post.file.fullImage src: post.file.URL
el.className = '' {thumb} = post.file
TrashQueue.remove el
else
el = $.el (if isVideo then 'video' else 'img'),
src: post.file.URL
post.file.fullImage = el
{thumb} = post.file
if d.body.contains thumb if d.body.contains thumb
$.after thumb, el unless el is thumb.nextSibling $.after thumb, el unless el is thumb.nextSibling