allow <Enter> to trigger search in loan

This commit is contained in:
2023-06-11 21:46:28 +10:00
parent 7b329d84fc
commit 65c701c6a0

View File

@@ -46,6 +46,9 @@
</div>
`
$('#dbox-content').html(div)
$('#bfl-search-term').keypress(function (e) {
if (e.which == 13) { FindNewBFL() }
} )
$('#dbox').modal('show')
$.post( "/books_for_loan/" + {{loan_id}}, function(data) {$('#bfl-existing').html(data) } );
}