fix link deactivation; should not have been made conditional
This commit is contained in:
parent
b224d20896
commit
eee835fec7
@ -160,15 +160,15 @@ ImageExpand =
|
|||||||
file.isExpanded = true
|
file.isExpanded = true
|
||||||
|
|
||||||
if file.isVideo
|
if file.isVideo
|
||||||
|
# add contract link to file info
|
||||||
if Conf['Show Controls']
|
if Conf['Show Controls']
|
||||||
# disable link to file so native controls can work
|
|
||||||
file.thumb.parentNode.removeAttribute 'href'
|
|
||||||
file.thumb.parentNode.removeAttribute 'target'
|
|
||||||
|
|
||||||
# setup controls in file info
|
|
||||||
file.videoControls = ImageExpand.videoControls.cloneNode true
|
file.videoControls = ImageExpand.videoControls.cloneNode true
|
||||||
$.add file.text, file.videoControls
|
$.add file.text, file.videoControls
|
||||||
|
|
||||||
|
# disable link to file so native controls can work
|
||||||
|
file.thumb.parentNode.removeAttribute 'href'
|
||||||
|
file.thumb.parentNode.removeAttribute 'target'
|
||||||
|
|
||||||
video = file.fullImage
|
video = file.fullImage
|
||||||
video.loop = true
|
video.loop = true
|
||||||
ImageExpand.setupVideoCB post
|
ImageExpand.setupVideoCB post
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user