]> git.mxchange.org Git - friendica.git/blobdiff - js/fk.autocomplete.js
rework autocomplete: add class dir and static function
[friendica.git] / js / fk.autocomplete.js
index 6010578ab7b01697ee1b5dd178b7556962991e41..d7c81276bb203eb91a7d7d66538fd8879eb619c9 100644 (file)
@@ -86,7 +86,7 @@ ACPopup.prototype._search = function(){
                        if (data.tot>0){
                                that.cont.show();
                                $(data.items).each(function(){
-                                       var html = "<img src='{0}' height='16px' width='16px'>{1} ({2})".format(this.photo, this.name, this.nick);
+                                       var html = "<img class='acpopup-img' src='{0}' height='16px' width='16px'> <span class='acpopup-name'>{1}</span> <span class='acpopup-addr'>({2})</span>".format(this.photo, this.name, this.addr);
                                        var nick = this.nick.replace(' ','');
                                        if (this.id!=='')  nick += '+' + this.id;
                                        that.add(html, nick + ' - ' + this.link);