Thomas Tanghus schrieb:

[/apps/contacts/js/contacts.js]
[Surname, Forename]

> Contact.prototype.getDisplayName = function() {
>     return this.getPreferredValue('N', 
> [this.getPreferredValue('FN',[])]).slice(0, 2).join(', ');
> };

Is there a way not to display the comma, when there's only a surname
or only a forename?

Example:

Source:

Forename: Andreas       
Surname: 

Forename: 
Surname: Tanghus

Wished View:

Andreas
Tanghus

Actual View:

, Andreas
Tanghus,


Andreas
-- 
http://borumat.de
http://fahrradzukunft.de

_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud

Reply via email to