Fix bug with groups and autocomplete

This commit is contained in:
Stefan Parviainen 2015-01-17 13:16:22 +01:00
parent 334d496bb1
commit 6f120ad122

View File

@ -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>"
}