Keep playing .webms in clones.
This commit is contained in:
parent
0815e008bb
commit
480ffba15c
@ -16,12 +16,16 @@ ImageExpand =
|
|||||||
return unless @file and (@file.isImage or @file.isVideo)
|
return unless @file and (@file.isImage or @file.isVideo)
|
||||||
{thumb} = @file
|
{thumb} = @file
|
||||||
$.on thumb.parentNode, 'click', ImageExpand.cb.toggle
|
$.on thumb.parentNode, 'click', ImageExpand.cb.toggle
|
||||||
if @isClone and $.hasClass thumb, 'expanding'
|
if @isClone
|
||||||
# If we clone a post where the image is still loading,
|
if @file.isImage and $.hasClass thumb, 'expanding'
|
||||||
# make it loading in the clone too.
|
# If we clone a post where the image is still loading,
|
||||||
ImageExpand.contract @
|
# make it loading in the clone too.
|
||||||
ImageExpand.expand @
|
ImageExpand.contract @
|
||||||
return
|
ImageExpand.expand @
|
||||||
|
return
|
||||||
|
if @file.isVideo and $.hasClass @nodes.root, 'expanded-image'
|
||||||
|
@file.fullImage.play()
|
||||||
|
return
|
||||||
if ImageExpand.on and !@isHidden and (Conf['Expand spoilers'] or !@file.isSpoiler)
|
if ImageExpand.on and !@isHidden and (Conf['Expand spoilers'] or !@file.isSpoiler)
|
||||||
ImageExpand.expand @
|
ImageExpand.expand @
|
||||||
cb:
|
cb:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user