rework autocomplete: add class dir and static function

This commit is contained in:
rabuzarus 2016-02-01 18:21:29 +01:00 committed by Roland Haeder
commit 341a22800d
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
3 changed files with 42 additions and 48 deletions

View file

@ -2,18 +2,6 @@
<script>
$(document).ready(function() {
$("#contacts-search").contact_autocomplete(baseurl + '/acl', 'a', true);
$("#contacts-search").keyup(function(event){
if(event.keyCode == 13){
$("#contacts-search").click();
}
});
$(".autocomplete-w1 .selected").keyup(function(event){
if(event.keyCode == 13){
$("#contacts-search").click();
}
});
});
</script>