mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-21 21:09:28 +00:00
Monotone-Parent: 8aa07a8f048c7e50cdc15d7dd7aa1b00d822b02f
Monotone-Revision: 7db6fbb0b2c9e675b2ca5efecf2fbe3abb0ea5f9 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-10-02T15:29:16 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -22,7 +22,7 @@ function addLineToTree(tree, parent, line) {
|
||||
|| nodes.length > 1) {
|
||||
var parentNode = nodes[0];
|
||||
var userInfos = parentNode.split(":");
|
||||
var email = userInfos[1] + " <" + userInfos[2] + ">";
|
||||
var email = userInfos[1] + " <" + userInfos[2] + ">";
|
||||
tree.add(parent, 0, email, 0, '#', userInfos[0], 'person',
|
||||
'', '',
|
||||
ResourcesURL + '/abcard.gif',
|
||||
@@ -35,7 +35,11 @@ function addLineToTree(tree, parent, line) {
|
||||
else
|
||||
icon += 'calendar-folder-16x16.png';
|
||||
var folderId = userInfos[0] + ":" + folderInfos[1];
|
||||
tree.add(parent + i, parent, folderInfos[0], 0, '#', folderId,
|
||||
var name = folderInfos[0]; // name has the format "Folername (Firstname Lastname <email>)"
|
||||
var pos = name.indexOf(' (')
|
||||
if (pos !== -1)
|
||||
name = name.substring(0, pos); // strip the part with fullname and email
|
||||
tree.add(parent + i, parent, name, 0, '#', folderId,
|
||||
folderInfos[2] + '-folder', '', '', icon, icon);
|
||||
}
|
||||
offset = nodes.length - 1;
|
||||
|
||||
Reference in New Issue
Block a user