partial implementation of first_eid, last_eid -- I think the vals work -- they do for searches anyway, but not stored in pa_user_state yet
This commit is contained in:
@@ -52,7 +52,7 @@ function DrawImg()
|
||||
if( $('#fname_toggle').prop('checked' ) )
|
||||
{
|
||||
// reset fname for new image (if navigated left/right to get here)
|
||||
$('#fname').html(PrettyFname(objs[current].name))
|
||||
$('#fname').html(PrettyFname(objs[current].url))
|
||||
$('.figcaption').show()
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ function DrawImg()
|
||||
|
||||
// if we have faces, the enable the toggles, otherwise disable them
|
||||
// and reset model select too
|
||||
if( objs[current].faces.length )
|
||||
if( objs[current].faces )
|
||||
{
|
||||
$('#faces').attr('disabled', false)
|
||||
$('#distance').attr('disabled', false)
|
||||
@@ -75,7 +75,7 @@ function DrawImg()
|
||||
}
|
||||
|
||||
// okay, we want faces drawn so lets do it
|
||||
if( $('#faces').prop('checked') )
|
||||
if( $('#faces').prop('checked') && objs[current].faces )
|
||||
{
|
||||
// draw rect on each face
|
||||
for( i=0; i<objs[current].faces.length; i++ )
|
||||
@@ -157,7 +157,7 @@ function ViewImageOrVideo()
|
||||
$('#video_div').hide()
|
||||
if( $('#fname_toggle').prop('checked' ) )
|
||||
$('#img-cap').show()
|
||||
$('#fname_i').html(PrettyFname(objs[current].name))
|
||||
$('#fname_i').html(PrettyFname(objs[current].url))
|
||||
$('#figure').show()
|
||||
if( fullscreen )
|
||||
$('#canvas').get(0).requestFullscreen()
|
||||
@@ -166,7 +166,7 @@ function ViewImageOrVideo()
|
||||
{
|
||||
$('#figure').hide()
|
||||
$('#video').prop('src', '../' + objs[current].url )
|
||||
$('#fname_v').html(PrettyFname(objs[current].name))
|
||||
$('#fname_v').html(PrettyFname(objs[current].url))
|
||||
if( $('#fname_toggle').prop('checked' ) )
|
||||
$('#img-cap').hide()
|
||||
ResizeVideo()
|
||||
|
||||
Reference in New Issue
Block a user