aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2015-01-19 19:10:36 +0100
committergit-marijus <mario@mariovavti.com>2015-01-19 19:10:36 +0100
commitab2db9e81907acd7416ee95f84e0af68ced2feea (patch)
treee990f2bfe2c32c3f25d150efe3661dc1a28fa641 /view
parent2372d9b42a04ddc2e46eec101385b3fce48ade55 (diff)
parentf55a312c17c639f270edc36245af375cf4bd6058 (diff)
downloadvolse-hubzilla-ab2db9e81907acd7416ee95f84e0af68ced2feea.tar.gz
volse-hubzilla-ab2db9e81907acd7416ee95f84e0af68ced2feea.tar.bz2
volse-hubzilla-ab2db9e81907acd7416ee95f84e0af68ced2feea.zip
Merge pull request #868 from pafcu/autocomplete_fix
Fix issue #865.
Diffstat (limited to 'view')
-rw-r--r--view/js/autocomplete.js2
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;
}
}