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;
|
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);
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user