fixed bug where video_div was not shown unless you start viewing on a video
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user