From 2212ddb91317de34b584861f4e2c1dc625924612 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 11 Apr 2014 23:54:11 -0700 Subject: use icons for identification --- view/js/autocomplete.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'view/js') diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 763ca354d..c820b3b47 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -85,7 +85,12 @@ ACPopup.prototype._search = function(){ if (data.tot>0){ that.cont.show(); $(data.items).each(function(){ - html = "{1} ({2})".format(this.photo, this.name, this.nick) + if(this.taggable) + ihtml = ''; + else + ihtml = ''; + + html = "{1} {2} ({3})".format(this.photo, ihtml, this.name, this.nick) that.add(this.taggable, html, this.nick.replace(' ','') + '+' + this.id + ' - ' + this.link); }); } else { -- cgit v1.2.3