allow <Enter> to trigger search in loan
This commit is contained in:
@@ -46,6 +46,9 @@
|
|||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
$('#dbox-content').html(div)
|
$('#dbox-content').html(div)
|
||||||
|
$('#bfl-search-term').keypress(function (e) {
|
||||||
|
if (e.which == 13) { FindNewBFL() }
|
||||||
|
} )
|
||||||
$('#dbox').modal('show')
|
$('#dbox').modal('show')
|
||||||
$.post( "/books_for_loan/" + {{loan_id}}, function(data) {$('#bfl-existing').html(data) } );
|
$.post( "/books_for_loan/" + {{loan_id}}, function(data) {$('#bfl-existing').html(data) } );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user