fixed bug where video_div was not shown unless you start viewing on a video

This commit is contained in:
2021-09-22 18:14:01 +10:00
parent 36d52e9341
commit 69f49b0662

View File

@@ -155,7 +155,6 @@ function ViewImageOrVideo()
{
im.src='../' + objs[current].url
$('#video_div').hide()
//$('#vid-cap').hide()
if( $('#fname_toggle').prop('checked' ) )
$('#img-cap').show()
$('#fname_i').html(objs[current].name)
@@ -165,14 +164,13 @@ function ViewImageOrVideo()
}
if( objs[current].type == 'Video' )
{
$('#video').prop('src', '../' + objs[current].url )
$('#figure').hide()
$('#video').prop('src', '../' + objs[current].url )
$('#fname_v').html(objs[current].name)
if( $('#fname_toggle').prop('checked' ) )
$('#img-cap').hide()
$('#video_div').show()
//$('#vid-cap').show()
ResizeVideo()
$('#video_div').show()
if( fullscreen )
$('#video').get(0).requestFullscreen()
}