another large clean up of code, all POSTs are now using make_response() and returning json OR are for a form that flask handles with rendering direct html. Where there is a POST with json response, the jscript now calls CheckForJobs() to show it in the F/E. Removed several debugs. Fixed up undocumented BUG where import datetime was wrong, and prefix/suffix also to offer directories near the date of an image. Removed unused routes for clearing messages
This commit is contained in:
@@ -287,6 +287,7 @@ function OverrideForceMatch( person_id, key )
|
||||
$('#dbox').modal('hide')
|
||||
$('#faces').prop('checked',true)
|
||||
DrawImg()
|
||||
CheckForJobs()
|
||||
}
|
||||
} )
|
||||
}
|
||||
@@ -320,6 +321,7 @@ function AddRefimgTo( person_id, key, search )
|
||||
$('#dbox').modal('hide')
|
||||
$('#faces').prop('checked',true)
|
||||
DrawImg()
|
||||
CheckForJobs()
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -374,6 +376,7 @@ function RemoveOverrideForceMatch(face_pos)
|
||||
delete objs[current].faces[face_pos].override
|
||||
$('#dbox').modal('hide')
|
||||
DrawImg()
|
||||
CheckForJobs()
|
||||
return false
|
||||
}
|
||||
} )
|
||||
@@ -388,6 +391,7 @@ function RemoveOverrideNoMatch(face_pos, type_id)
|
||||
delete objs[current].faces[face_pos].override
|
||||
$('#dbox').modal('hide')
|
||||
DrawImg()
|
||||
CheckForJobs()
|
||||
return false
|
||||
}
|
||||
} )
|
||||
@@ -407,6 +411,7 @@ function AddNoMatchOverride(type_id, face_id, face_pos, type_id)
|
||||
$('#dbox').modal('hide')
|
||||
$('#faces').prop('checked',true)
|
||||
DrawImg()
|
||||
CheckForJobs()
|
||||
}
|
||||
} )
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user