1
0
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:
Thomas Tanghus 2013-02-26 22:25:57 +01:00
parent fff18e8f11
commit 2aa8f7fb81

View File

@ -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;