improve usability on face dbox for search/overrides, etc.

This commit is contained in:
2022-07-10 19:25:35 +10:00
parent 9f2ecb1901
commit b9359b4680
3 changed files with 7 additions and 9 deletions

View File

@@ -402,16 +402,16 @@ function AddSearch( content, key, face_pos )
function FaceDBox(key, item)
{
face_pos=item[key]['which_face']
div ='<p>'
div ='<div class="col-6"><p>'
div+='Face position #' + face_pos
div+='<div id="face_img"></div>'
$.ajax({ type: 'POST', data: null, url: '/get_face_from_image/'+item[key]['id'],
$.ajax({ type: 'POST', data: null, url: '/get_face_from_image/'+item[key].id,
success: function(img_data) {
item[key].refimg_data=img_data
$('#face_img').html( '<img src="data:image/jpeg;base64,' + img_data + '"></img>' )
}
} )
div+='</p>'
div+='</p></div><div class="col-6">'
if ( key == 'remove_override_force_match' )
{
if( objs[current].faces[face_pos].override.type_name == 'Manual match to existing person' )
@@ -457,6 +457,7 @@ function FaceDBox(key, item)
div+='</div>'
}
}
div+='</div>'
$('#dbox-title').html(item[key]['name'])
$('#dbox-content').html(div)
$('#dbox').modal('show')