mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 19:35:38 +00:00
Monotone-Parent: 0742b132865bb64da2c2aa1944247147ae906d38
Monotone-Revision: 4ec7b248cac042317cf5d80e06d1372dddd83171 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-27T21:00:06 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -36,8 +36,8 @@ function addLineToTree(tree, parent, line) {
|
||||
icon += 'calendar-folder-16x16.png';
|
||||
var folderId = userInfos[0] + ":" + folderInfos[1];
|
||||
var name = folderInfos[0]; // name has the format "Folername (Firstname Lastname <email>)"
|
||||
var pos = name.indexOf(' (')
|
||||
if (pos !== -1)
|
||||
var pos = name.lastIndexOf(' (')
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user