diff --git a/internal/js/view_support.js b/internal/js/view_support.js index de9a663..a41da57 100644 --- a/internal/js/view_support.js +++ b/internal/js/view_support.js @@ -267,11 +267,13 @@ $(document).ready( function() function OverrideForceMatch( person_id, face_id, face_pos ) { ofm='&person_id='+person_id+'&face_id='+face_id - // on success, close the dbox, force face drawing on and redraw the face with the new override $.ajax({ type: 'POST', data: ofm, url: '/override_force_match', success: function(data) { + // on success, remember the original data, apply override values, close the dbox, force face drawing boxes on and redraw the face with the new override if( objs[current].faces[face_pos].who ) objs[current].faces[face_pos].old_who=objs[current].faces[face_pos].who + objs[current].faces[face_pos].old_distance=objs[current].faces[face_pos].distance objs[current].faces[face_pos].who=data.person_tag + objs[current].faces[face_pos].distance="N/A" objs[current].faces[face_pos].override=1 $('#dbox').modal('hide') @@ -294,8 +296,12 @@ function SearchForPerson(face_id, face_pos) content='Click one of the link(s) below to manually connect this face as once-off connection to the person:

' for( var key in data ) { var person = data[key]; + /* content+= ''+person.firstname+' '+person.surname+' ('+person.tag+')
' + */ + content+= ''+person.firstname+' '+person.surname+' ('+person.tag+')
' } $('#search_person_results').html( content ) } diff --git a/templates/viewer.html b/templates/viewer.html index cd5a9e0..72da1c9 100644 --- a/templates/viewer.html +++ b/templates/viewer.html @@ -58,6 +58,7 @@ {% if face.manual_override %} data['override']=1 data['who']='{{face.manual_override.person.tag}}' + data['distance']="N/A" {% endif %} e.faces.push( data ) {% endfor %}