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:
2022-01-25 00:48:14 +11:00
parent 65ebfe2d31
commit 08ca9b4e74
7 changed files with 182 additions and 69 deletions

View File

@@ -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()