Merge pull request #858 from pafcu/master

Fix bug with groups and autocomplete
This commit is contained in:
pafcu 2015-01-17 14:21:22 +02:00
commit da94dbe331

View File

@ -54,6 +54,7 @@ function contact_format(item) {
// Show contact information if not explicitly told to show something else // Show contact information if not explicitly told to show something else
if(typeof item.text === 'undefined') { if(typeof item.text === 'undefined') {
var desc = ((item.label) ? item.nick + ' ' + item.label : item.nick) var desc = ((item.label) ? item.nick + ' ' + item.label : item.nick)
if(typeof desc === 'undefined') desc = '';
if(desc) desc = ' ('+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) return "<div class='{0}' title='{4}'><img src='{1}'>{2}{3}</div>".format(item.taggable, item.photo, item.name, desc, item.link)
} }