]> source.dussan.org Git - nextcloud-server.git/commitdiff
Contacts: wrong name was set on initial load.
authorThomas Tanghus <thomas@tanghus.net>
Thu, 17 May 2012 14:46:07 +0000 (16:46 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Thu, 17 May 2012 14:46:39 +0000 (16:46 +0200)
apps/contacts/js/contacts.js

index d60d523542e8e9d0b39d2b258525f9f10189f448..256b5ad6d0a670aad01579cafc1530c62042d574 100644 (file)
@@ -514,9 +514,9 @@ Contacts={
                                if(this.honsuf.length > 0) {
                                        this.fullname += ', ' + this.honsuf;
                                }
-                               $('#n').html(this.fullname);
+                               $('#n').val(narray.join(';'));
                                $('#fn_select option').remove();
-                               var names = [this.fullname, this.givname + ' ' + this.famname, this.famname + ' ' + this.givname, this.famname + ', ' + this.givname];
+                               var names = [this.fn, this.fullname, this.givname + ' ' + this.famname, this.famname + ' ' + this.givname, this.famname + ', ' + this.givname];
                                if(this.data.ORG) {
                                        names[names.length]=this.data.ORG[0].value;
                                }