diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-19 22:19:52 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-19 22:19:52 -0700 |
commit | 2f1ad15645e8e970d4f7c0dc50b33823a7666f50 (patch) | |
tree | 88177502749a6a1d6f5a119e7102debbdd2ca69e /view/js | |
parent | b1ed79f239e3a4517091c0acfd4f0d6cc28a7cab (diff) | |
download | volse-hubzilla-2f1ad15645e8e970d4f7c0dc50b33823a7666f50.tar.gz volse-hubzilla-2f1ad15645e8e970d4f7c0dc50b33823a7666f50.tar.bz2 volse-hubzilla-2f1ad15645e8e970d4f7c0dc50b33823a7666f50.zip |
fix navbar contact autocomplete 'undefined' hovertip
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/autocomplete.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index e92de17c4..be632a07e 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -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>"; |