diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-19 15:35:06 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-19 15:35:06 +0100 |
commit | f55a312c17c639f270edc36245af375cf4bd6058 (patch) | |
tree | 04a0a61c440fc731f057f9f7ecbe28fa4d435a1c /view/js/autocomplete.js | |
parent | 8c6576baa5d27fbc7b3c205a7fb38d345f55765e (diff) | |
download | volse-hubzilla-f55a312c17c639f270edc36245af375cf4bd6058.tar.gz volse-hubzilla-f55a312c17c639f270edc36245af375cf4bd6058.tar.bz2 volse-hubzilla-f55a312c17c639f270edc36245af375cf4bd6058.zip |
Fix issue #865.
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r-- | view/js/autocomplete.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 3c35df860..f695a5dbf 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -15,7 +15,7 @@ function contact_search(term, callback, backend_url, type, extra_channels) { // Filter old results locally var matching = contact_search.cache[bt][t].filter(function (x) { return (x.name.toLowerCase().indexOf(lterm) >= 0 || x.nick.toLowerCase().indexOf(lterm) >= 0); }); matching.unshift({taggable:false, text: term, replace: term}); - callback(matching); + setTimeout(function() { callback(matching)} , 1); // Use "pseudo-thread" to avoid some problems return; } } |