From 6f120ad12290add80f7837aa9f1487f969e7bc78 Mon Sep 17 00:00:00 2001 From: Stefan Parviainen Date: Sat, 17 Jan 2015 13:16:22 +0100 Subject: Fix bug with groups and autocomplete --- view/js/autocomplete.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'view/js/autocomplete.js') 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 "
{2}{3}
".format(item.taggable, item.photo, item.name, desc, item.link) } else +console.log("item"+item); return "
"+item.text+"
" } -- cgit v1.2.3