]> git.mxchange.org Git - friendica.git/commitdiff
don't allow space in autocomplete nickname
authorfriendica <info@friendica.com>
Sat, 19 Nov 2011 07:02:07 +0000 (23:02 -0800)
committerfriendica <info@friendica.com>
Sat, 19 Nov 2011 07:02:07 +0000 (23:02 -0800)
js/fk.autocomplete.js

index 545fd16454aaea3ab949974dc386d0ff2c43f489..85b51baeb3078796392eb7d09c08faeca4e18a3d 100644 (file)
@@ -80,7 +80,7 @@ ACPopup.prototype._search = function(){
                                that.cont.show();
                                $(data.items).each(function(){
                                        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 {
                                that.cont.hide();