mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Contacts: Test for more ways to construct name.
This commit is contained in:
parent
fff18e8f11
commit
2aa8f7fb81
@ -375,7 +375,12 @@ OC.Contacts = OC.Contacts || {};
|
||||
self.data.FN[0]['value'] = value[1] + ' ' + value[0];
|
||||
$fullname.val(self.data.FN[0]['value']);
|
||||
update_fn = true;
|
||||
} else if($fullname.val()[0] === ' ') {
|
||||
} else if($fullname.val() == value[1] + ' ') {
|
||||
console.log('change', value);
|
||||
self.data.FN[0]['value'] = value[1] + ' ' + value[0];
|
||||
$fullname.val(self.data.FN[0]['value']);
|
||||
update_fn = true;
|
||||
} else if($fullname.val() == ' ' + value[0]) {
|
||||
self.data.FN[0]['value'] = value[1] + ' ' + value[0];
|
||||
$fullname.val(self.data.FN[0]['value']);
|
||||
update_fn = true;
|
||||
|
Loading…
Reference in New Issue
Block a user