Fix some post hidden checking.
This commit is contained in:
parent
c6a72d9fae
commit
1433baacfd
@ -3712,7 +3712,7 @@
|
|||||||
node: function(post) {
|
node: function(post) {
|
||||||
var gif, img, src;
|
var gif, img, src;
|
||||||
img = post.img;
|
img = post.img;
|
||||||
if (post.root.hidden || !img) {
|
if (post.el.hidden || !img) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
src = img.parentNode.href;
|
src = img.parentNode.href;
|
||||||
@ -3738,7 +3738,7 @@
|
|||||||
}
|
}
|
||||||
a = post.img.parentNode;
|
a = post.img.parentNode;
|
||||||
$.on(a, 'click', ImageExpand.cb.toggle);
|
$.on(a, 'click', ImageExpand.cb.toggle);
|
||||||
if (ImageExpand.on && !post.root.hidden && post["class"] !== 'inline') {
|
if (ImageExpand.on && !post.el.hidden && post["class"] !== 'inline') {
|
||||||
return ImageExpand.expand(post.img);
|
return ImageExpand.expand(post.img);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -2846,7 +2846,7 @@ AutoGif =
|
|||||||
Main.callbacks.push @node
|
Main.callbacks.push @node
|
||||||
node: (post) ->
|
node: (post) ->
|
||||||
{img} = post
|
{img} = post
|
||||||
return if post.root.hidden or not img
|
return if post.el.hidden or not img
|
||||||
src = img.parentNode.href
|
src = img.parentNode.href
|
||||||
if /gif$/.test(src) and !/spoiler/.test img.src
|
if /gif$/.test(src) and !/spoiler/.test img.src
|
||||||
gif = $.el 'img'
|
gif = $.el 'img'
|
||||||
@ -2864,7 +2864,7 @@ ImageExpand =
|
|||||||
return unless post.img
|
return unless post.img
|
||||||
a = post.img.parentNode
|
a = post.img.parentNode
|
||||||
$.on a, 'click', ImageExpand.cb.toggle
|
$.on a, 'click', ImageExpand.cb.toggle
|
||||||
if ImageExpand.on and !post.root.hidden and post.class isnt 'inline'
|
if ImageExpand.on and !post.el.hidden and post.class isnt 'inline'
|
||||||
ImageExpand.expand post.img
|
ImageExpand.expand post.img
|
||||||
cb:
|
cb:
|
||||||
toggle: (e) ->
|
toggle: (e) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user