Fix sound playing from replaced WebM thumbnails in previewed/inlined quotes.

This commit is contained in:
ccd0 2015-01-30 23:24:46 -08:00
parent f2bfea604d
commit 29b78bf377
2 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,8 @@ class Clone extends Post
@file.thumb = $ '.fileThumb > [data-md5]', file
@file.fullImage = $ '.full-image', file
@file.thumb.muted = true if @file.videoThumb
# Contract thumbnails in quote preview
ImageExpand.contract @ if contractThumb

View File

@ -50,6 +50,7 @@ ImageLoader =
poster: thumb.src
textContent: thumb.alt
className: thumb.className
video.setAttribute 'muted', 'muted'
video.dataset.md5 = thumb.dataset.md5
video.style[attr] = thumb.style[attr] for attr in ['height', 'width', 'maxHeight', 'maxWidth']
video.src = file.URL