]> source.dussan.org Git - nextcloud-server.git/commitdiff
Contacts: Add Organisation as Name property choice
authorBart Visscher <bartv@thisnet.nl>
Mon, 5 Mar 2012 21:03:33 +0000 (22:03 +0100)
committerBart Visscher <bartv@thisnet.nl>
Wed, 7 Mar 2012 20:46:41 +0000 (21:46 +0100)
apps/contacts/js/contacts.js

index 60ee8b9e56c7028ba2ac4c2672f0372bd77518c1..94876f5cd0906693d84381aebf596afef129c093 100644 (file)
@@ -448,6 +448,9 @@ Contacts={
                                $('#fn_select option').remove();
                                $('#fn_select').combobox('value', this.fn);
                                var names = [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;
+                               }
                                $.each(names, function(key, value) {
                                        $('#fn_select')
                                                .append($('<option></option>')