aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/autocomplete.js
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-28 18:32:04 -0700
committerzotlabs <mike@macgirvin.com>2018-03-28 18:32:04 -0700
commit1cf0de568ddb4b49ad27e50572779a61f4e7fd13 (patch)
treeaeae58122725a75516fbdecdbfebe266a19d6c00 /view/js/autocomplete.js
parent662316e6873fa8152bb96b172c42ca424cb5fbd3 (diff)
downloadvolse-hubzilla-1cf0de568ddb4b49ad27e50572779a61f4e7fd13.tar.gz
volse-hubzilla-1cf0de568ddb4b49ad27e50572779a61f4e7fd13.tar.bz2
volse-hubzilla-1cf0de568ddb4b49ad27e50572779a61f4e7fd13.zip
use context method
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r--view/js/autocomplete.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index 2d017db18..f7570523e 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -212,6 +212,7 @@ function string2bb(element) {
index: 3,
search: function(term, callback) { $.getJSON('/hashtags/' + '$f=&t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.indexOf(term) === 0 ? entry : null; })); }); },
replace: function(item) { return "$1$2" + item.text + ' '; },
+ context: function(text) { return text.toLowerCase(); },
template: tag_format
};