don't allow space in autocomplete nickname

This commit is contained in:
friendica 2011-11-18 23:02:07 -08:00
parent 6893df991e
commit d4911f15e9

View file

@ -80,7 +80,7 @@ ACPopup.prototype._search = function(){
that.cont.show(); that.cont.show();
$(data.items).each(function(){ $(data.items).each(function(){
html = "<img src='{0}' height='16px' width='16px'>{1} ({2})".format(this.photo, this.name, this.nick) html = "<img src='{0}' height='16px' width='16px'>{1} ({2})".format(this.photo, this.name, this.nick)
that.add(html, this.nick + '+' + this.id + ' - ' + this.link); that.add(html, this.nick.replace(' ','') + '+' + this.id + ' - ' + this.link);
}); });
} else { } else {
that.cont.hide(); that.cont.hide();