Contacts: Add Organisation as Name property choice

This commit is contained in:
Bart Visscher 2012-03-05 22:03:33 +01:00
parent 9ccf46d350
commit 46aa011ef9
1 changed files with 3 additions and 0 deletions

View 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>')