diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-05-17 12:58:59 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-05-17 12:58:59 +0200 |
commit | 5a6141faa2a87a4aeb00a566c1230f35544ff3d2 (patch) | |
tree | 3ac6f1d32e2deec7f8c4d0ad6f62195f59ec6acf | |
parent | 12c571a1878348c77362a345853eb9575943ef38 (diff) | |
download | volse-hubzilla-5a6141faa2a87a4aeb00a566c1230f35544ff3d2.tar.gz volse-hubzilla-5a6141faa2a87a4aeb00a566c1230f35544ff3d2.tar.bz2 volse-hubzilla-5a6141faa2a87a4aeb00a566c1230f35544ff3d2.zip |
display address in contact_format() instead of nick
-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 e5a551344..54eb03e13 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -40,7 +40,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, typeof(item.link) !== 'undefined' ? item.link : desc.replace('(','').replace(')','')); + 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'>{4}</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>"; |