aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-21 18:15:44 -0700
committerzotlabs <mike@macgirvin.com>2016-10-21 18:15:44 -0700
commit9fea44cbc36e2e8bb5b2b521694d797e0eadc456 (patch)
tree83e38f50dd7848ac470b7966906d353700ee23d9
parent5e761a106803e65b1e5b34733b303823193f617e (diff)
downloadvolse-hubzilla-9fea44cbc36e2e8bb5b2b521694d797e0eadc456.tar.gz
volse-hubzilla-9fea44cbc36e2e8bb5b2b521694d797e0eadc456.tar.bz2
volse-hubzilla-9fea44cbc36e2e8bb5b2b521694d797e0eadc456.zip
better fix for navbar channel autocomplete, refrain from search until a minimum of 3 chars entered. 2 typically gives way too many results and usually low quality results.
-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 62a3b6f06..571b5a5b1 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -202,7 +202,7 @@ function string2bb(element) {
$.fn.search_autocomplete = function(backend_url) {
// Autocomplete contacts
contacts = {
- match: /(^@)([^\n]{2,})$/,
+ match: /(^@)([^\n]{3,})$/,
index: 2,
search: function(term, callback) { contact_search(term, callback, backend_url, 'x', [], spinelement='#nav-search-spinner'); },
replace: basic_replace,