remove contracted images as we do videos
This commit is contained in:
parent
72e76501d0
commit
019ac7d5c3
@ -137,10 +137,9 @@ ImageExpand =
|
|||||||
$.off el, 'error', ImageExpand.error
|
$.off el, 'error', ImageExpand.error
|
||||||
if file.isVideo
|
if file.isVideo
|
||||||
el.pause()
|
el.pause()
|
||||||
TrashQueue.add el, post
|
|
||||||
for eventName, cb of ImageExpand.videoCB
|
for eventName, cb of ImageExpand.videoCB
|
||||||
$.off el, eventName, cb
|
$.off el, eventName, cb
|
||||||
return
|
TrashQueue.add el, post
|
||||||
|
|
||||||
expand: (post, src) ->
|
expand: (post, src) ->
|
||||||
# Do not expand images of hidden/filtered replies, or already expanded pictures.
|
# Do not expand images of hidden/filtered replies, or already expanded pictures.
|
||||||
|
|||||||
@ -41,7 +41,7 @@ ImageHover =
|
|||||||
cb: ->
|
cb: ->
|
||||||
if isVideo
|
if isVideo
|
||||||
el.pause()
|
el.pause()
|
||||||
TrashQueue.add el, post
|
TrashQueue.add el, post
|
||||||
el.removeAttribute 'id'
|
el.removeAttribute 'id'
|
||||||
$.queueTask -> delete file.isHovered
|
$.queueTask -> delete file.isHovered
|
||||||
error: ->
|
error: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user