aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2015-01-17 13:16:22 +0100
committerStefan Parviainen <saparvia@caterva.eu>2015-01-17 13:16:22 +0100
commit6f120ad12290add80f7837aa9f1487f969e7bc78 (patch)
tree80356aaba8e3a44ce06906325fde07951a44218e
parent334d496bb1779d9b9d06d8427da50e751bd2a98d (diff)
downloadvolse-hubzilla-6f120ad12290add80f7837aa9f1487f969e7bc78.tar.gz
volse-hubzilla-6f120ad12290add80f7837aa9f1487f969e7bc78.tar.bz2
volse-hubzilla-6f120ad12290add80f7837aa9f1487f969e7bc78.zip
Fix bug with groups and autocomplete
-rw-r--r--view/js/autocomplete.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index 40a9cd4c8..e270cb823 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -54,10 +54,12 @@ function contact_format(item) {
// Show contact information if not explicitly told to show something else
if(typeof item.text === 'undefined') {
var desc = ((item.label) ? item.nick + ' ' + item.label : item.nick)
+ if(typeof desc === 'undefined') desc = '';
if(desc) desc = ' ('+desc+')';
return "<div class='{0}' title='{4}'><img src='{1}'>{2}{3}</div>".format(item.taggable, item.photo, item.name, desc, item.link)
}
else
+console.log("item"+item);
return "<div>"+item.text+"</div>"
}