Close #480.
This commit is contained in:
parent
5d65027b5d
commit
9a046ab3c6
@ -3775,7 +3775,8 @@
|
|||||||
},
|
},
|
||||||
contract: function(thumb) {
|
contract: function(thumb) {
|
||||||
thumb.hidden = false;
|
thumb.hidden = false;
|
||||||
return thumb.nextSibling.hidden = true;
|
thumb.nextSibling.hidden = true;
|
||||||
|
return $.removeClass(thumb.parentNode.parentNode.parentNode, 'image_expanded');
|
||||||
},
|
},
|
||||||
expand: function(thumb, url) {
|
expand: function(thumb, url) {
|
||||||
var a, img;
|
var a, img;
|
||||||
@ -3783,6 +3784,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
thumb.hidden = true;
|
thumb.hidden = true;
|
||||||
|
$.addClass(thumb.parentNode.parentNode.parentNode, 'image_expanded');
|
||||||
if (img = thumb.nextSibling) {
|
if (img = thumb.nextSibling) {
|
||||||
img.hidden = false;
|
img.hidden = false;
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -2856,12 +2856,13 @@ ImageExpand =
|
|||||||
contract: (thumb) ->
|
contract: (thumb) ->
|
||||||
thumb.hidden = false
|
thumb.hidden = false
|
||||||
thumb.nextSibling.hidden = true
|
thumb.nextSibling.hidden = true
|
||||||
|
$.removeClass thumb.parentNode.parentNode.parentNode, 'image_expanded'
|
||||||
|
|
||||||
expand: (thumb, url) ->
|
expand: (thumb, url) ->
|
||||||
# Do not expand images of hidden/filtered replies, or already expanded pictures.
|
# Do not expand images of hidden/filtered replies, or already expanded pictures.
|
||||||
return if $.x 'ancestor-or-self::*[@hidden]', thumb
|
return if $.x 'ancestor-or-self::*[@hidden]', thumb
|
||||||
|
|
||||||
thumb.hidden = true
|
thumb.hidden = true
|
||||||
|
$.addClass thumb.parentNode.parentNode.parentNode, 'image_expanded'
|
||||||
if img = thumb.nextSibling
|
if img = thumb.nextSibling
|
||||||
# Expand already loaded picture
|
# Expand already loaded picture
|
||||||
img.hidden = false
|
img.hidden = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user