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;
post = $.hasClass(this, 'thumb') ? g.posts[this.parentNode.dataset.fullID] : Get.postFromNode(this);
isVideo = post.file.isVideo;
if (post.file.fullImage) {
el = post.file.fullImage;
el.className = '';
TrashQueue.remove(el);
} else {
el = $.el((isVideo ? 'video' : 'img'), {
src: post.file.URL
});
post.file.fullImage = el;
thumb = post.file.thumb;
}
el = $.el((isVideo ? 'video' : 'img'), {
src: post.file.URL
});
thumb = post.file.thumb;
if (d.body.contains(thumb)) {
if (el !== thumb.nextSibling) {
$.after(thumb, el);

View File

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

View File

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