diff --git a/internal/js/view_support.js b/internal/js/view_support.js index 6c9d59e..661c060 100644 --- a/internal/js/view_support.js +++ b/internal/js/view_support.js @@ -237,6 +237,8 @@ $(document).ready( function() else if( objs[current].faces[i].who ) { item_list['match']={ 'name': objs[current].faces[i].who, 'which_face': i, 'id': objs[current].faces[i].id } + item_list['match_add_refimg']={ 'name': 'Add this as refimg for ' + objs[current].faces[i].who, + 'person_id': objs[current].faces[i].pid, 'who': objs[current].faces[i].who, 'which_face': i, 'id': objs[current].faces[i].id, } item_list['wrong_person']={ 'name': 'wrong person', 'which_face': i, 'id': objs[current].faces[i].id } } else @@ -494,10 +496,23 @@ function FaceDBox(key, item) { div+=AddSearch( 'Click one of the link(s) below to add this face as a reference image to the person:

', key, face_pos ); } + if ( key == 'match_add_refimg' ) + { + func='AddRefimgTo('+item[key]['person_id']+',\''+key+'\'' + func_sn=func+ ', true )' + func_ao=func+ ', false )' + div+=`` + div+="Confirm you wish to add this face as a reference image for " + item[key]['who'] + div+= '
' + item[key]['who'] + '
' + div+= ' ' + div+= '
' + + } if ( key == 'wrong_person' ) { div+='
wrong person, so mark this as the wrong person/refimg connection, for face#' + item[key]['which_face'] div+='
face db id: ' + item[key]['id'] + div += '
not yet' } if( /NMO_/.test(key) ) {