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
|
im.src='../' + objs[current].url
|
||||||
$('#video_div').hide()
|
$('#video_div').hide()
|
||||||
//$('#vid-cap').hide()
|
|
||||||
if( $('#fname_toggle').prop('checked' ) )
|
if( $('#fname_toggle').prop('checked' ) )
|
||||||
$('#img-cap').show()
|
$('#img-cap').show()
|
||||||
$('#fname_i').html(objs[current].name)
|
$('#fname_i').html(objs[current].name)
|
||||||
@@ -165,14 +164,13 @@ function ViewImageOrVideo()
|
|||||||
}
|
}
|
||||||
if( objs[current].type == 'Video' )
|
if( objs[current].type == 'Video' )
|
||||||
{
|
{
|
||||||
$('#video').prop('src', '../' + objs[current].url )
|
|
||||||
$('#figure').hide()
|
$('#figure').hide()
|
||||||
|
$('#video').prop('src', '../' + objs[current].url )
|
||||||
$('#fname_v').html(objs[current].name)
|
$('#fname_v').html(objs[current].name)
|
||||||
if( $('#fname_toggle').prop('checked' ) )
|
if( $('#fname_toggle').prop('checked' ) )
|
||||||
$('#img-cap').hide()
|
$('#img-cap').hide()
|
||||||
$('#video_div').show()
|
|
||||||
//$('#vid-cap').show()
|
|
||||||
ResizeVideo()
|
ResizeVideo()
|
||||||
|
$('#video_div').show()
|
||||||
if( fullscreen )
|
if( fullscreen )
|
||||||
$('#video').get(0).requestFullscreen()
|
$('#video').get(0).requestFullscreen()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user