diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-10-26 14:18:05 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-10-26 14:18:05 +0200 |
commit | 7060debeca0d1c36871611a00c150850042b69c1 (patch) | |
tree | e33f08ec7912966a52170c55b6180eb6210abbc0 /js/fk.autocomplete.js | |
parent | 951c73d825a024aee6729d645afd97c7fa53c760 (diff) | |
download | volse-hubzilla-7060debeca0d1c36871611a00c150850042b69c1.tar.gz volse-hubzilla-7060debeca0d1c36871611a00c150850042b69c1.tar.bz2 volse-hubzilla-7060debeca0d1c36871611a00c150850042b69c1.zip |
autocomplete: small fix to js
Diffstat (limited to 'js/fk.autocomplete.js')
-rw-r--r-- | js/fk.autocomplete.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/js/fk.autocomplete.js b/js/fk.autocomplete.js index e58ed18cd..1484758ad 100644 --- a/js/fk.autocomplete.js +++ b/js/fk.autocomplete.js @@ -120,6 +120,9 @@ function ContactAutocomplete(element,backend_url){ this.popup=null; var that = this; + $(element).unbind('keydown'); + $(element).unbind('keyup'); + $(element).keydown(function(event){ if (that.popup!==null) that.popup.onkey(event); }); @@ -145,15 +148,14 @@ function ContactAutocomplete(element,backend_url){ } + /** * jQuery plugin 'contact_autocomplete' */ (function( $ ){ - var map=new Array(); $.fn.contact_autocomplete = function(backend_url) { this.each(function(){ - if (this in map) return; - map[this] = new ContactAutocomplete(this, backend_url); + new ContactAutocomplete(this, backend_url); }); }; })( jQuery ); |