This is causing more issues than it's preventing.
This commit is contained in:
parent
7514ff41d4
commit
3254a1d232
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user