added <Enter> convenience binding for search person in add manual override
This commit is contained in:
@@ -409,12 +409,15 @@ function FaceDBox(key, item)
|
||||
div+=
|
||||
`
|
||||
<div class="input-group mb-3"><input type="text" class="form-control" id="stext" placeholder="tag/name">
|
||||
<button class="btn btn-outline-success" type="button" onClick="SearchForPerson(`
|
||||
<button id="search_person_btn" class="btn btn-outline-success" type="button" onClick="SearchForPerson(`
|
||||
div+= item[key]['id'] + ',' + face_pos + ',' + item[key].type_id
|
||||
div+=`)">Search</button>
|
||||
</div>
|
||||
<div id="search_person_results">
|
||||
</div>`
|
||||
</div>
|
||||
<script>
|
||||
$("#stext").keypress(function (e) { if (e.which == 13) { $("#search_person_btn").click(); return false; } } )
|
||||
</script>`
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user