mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 07:15:13 +00:00
fix navbar contact autocomplete 'undefined' hovertip
This commit is contained in:
parent
b1ed79f239
commit
2f1ad15645
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ function contact_format(item) {
|
|||
var desc = ((item.label) ? item.nick + ' ' + item.label : item.nick);
|
||||
if(typeof desc === 'undefined') desc = '';
|
||||
if(desc) desc = ' ('+desc+')';
|
||||
return "<div class='{0} dropdown-item dropdown-notification clearfix' title='{4}'><img class='menu-img-2' src='{1}'><span class='contactname'>{2}</span><span class='dropdown-sub-text'>{3}</span></div>".format(item.taggable, item.photo, item.name, desc, item.link);
|
||||
return "<div class='{0} dropdown-item dropdown-notification clearfix' title='{4}'><img class='menu-img-2' src='{1}'><span class='contactname'>{2}</span><span class='dropdown-sub-text'>{3}</span></div>".format(item.taggable, item.photo, item.name, desc, typeof(item.link) !== 'undefined' ? item.link : desc.replace('(','').replace(')',''));
|
||||
}
|
||||
else
|
||||
return "<div>" + item.text + "</div>";
|
||||
|
|
Loading…
Reference in a new issue