Automatically play/pause videos in clones too.
This commit is contained in:
parent
fba314e05a
commit
78c86945f9
@ -56,8 +56,9 @@ ImageExpand =
|
|||||||
playVideos: (e) ->
|
playVideos: (e) ->
|
||||||
for fullID, post of g.posts
|
for fullID, post of g.posts
|
||||||
continue unless post.file and post.file.isVideo and post.file.isExpanded
|
continue unless post.file and post.file.isVideo and post.file.isExpanded
|
||||||
play = !d.hidden and !post.isHidden and doc.contains(post.nodes.root) and Header.isNodeVisible post.nodes.root
|
for post in [post].concat post.clones
|
||||||
if play then post.file.fullImage.play() else post.file.fullImage.pause()
|
play = !d.hidden and !post.isHidden and doc.contains(post.nodes.root) and Header.isNodeVisible post.nodes.root
|
||||||
|
if play then post.file.fullImage.play() else post.file.fullImage.pause()
|
||||||
return
|
return
|
||||||
setFitness: ->
|
setFitness: ->
|
||||||
(if @checked then $.addClass else $.rmClass) doc, @name.toLowerCase().replace /\s+/g, '-'
|
(if @checked then $.addClass else $.rmClass) doc, @name.toLowerCase().replace /\s+/g, '-'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user