Fix loading image expansion in clones.
This commit is contained in:
parent
50a13f306f
commit
354f566672
@ -3224,8 +3224,15 @@ ImageExpand =
|
|||||||
name: 'Image Expansion'
|
name: 'Image Expansion'
|
||||||
cb: @node
|
cb: @node
|
||||||
node: ->
|
node: ->
|
||||||
return unless @file and @file.isImage
|
return unless @file?.isImage
|
||||||
$.on @file.thumb.parentNode, 'click', ImageExpand.cb.toggle
|
{thumb} = @file
|
||||||
|
$.on thumb.parentNode, 'click', ImageExpand.cb.toggle
|
||||||
|
if @isClone and $.hasClass thumb, 'expanding'
|
||||||
|
# If we clone a post where the image is still loading,
|
||||||
|
# make it loading in the clone too.
|
||||||
|
ImageExpand.contract @
|
||||||
|
ImageExpand.expand @
|
||||||
|
return
|
||||||
if ImageExpand.on and !@isHidden
|
if ImageExpand.on and !@isHidden
|
||||||
ImageExpand.expand @
|
ImageExpand.expand @
|
||||||
cb:
|
cb:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user