mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
Monotone-Parent: 0be0c535500e7a08745c9f2d3ffe2b5c0c183d2e
Monotone-Revision: 4c9c451ed285e35bcbdb393184764a8aeee61e28 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-09-05T15:33:31 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2007-09-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Scheduler/UIxCalendarSelector.m ([UIxCalendarSelector
|
||||
-currentCalendarLogin]): replace css-unsafe characters with _.
|
||||
|
||||
* UI/SOGoUI/UIxComponent.m ([UIxComponent
|
||||
-shortUserNameForDisplay]): simplified method.
|
||||
([-user]): removed method since [context activeUser] is as useful.
|
||||
|
||||
@@ -152,13 +152,19 @@ colorForNumber (unsigned int number)
|
||||
- (NSString *) currentCalendarLogin
|
||||
{
|
||||
NSArray *parts;
|
||||
NSMutableString *login;
|
||||
|
||||
login = [NSMutableString string];
|
||||
parts = [[currentCalendarFolder objectForKey: @"folder"]
|
||||
componentsSeparatedByString: @":"];
|
||||
[login appendString: (([parts count] > 1)
|
||||
? [parts objectAtIndex: 0]
|
||||
: [[context activeUser] login])];
|
||||
[login replaceString: @"." withString: @"_"];
|
||||
[login replaceString: @"#" withString: @"_"];
|
||||
[login replaceString: @"@" withString: @"_"];
|
||||
|
||||
return (([parts count] > 1)
|
||||
? [parts objectAtIndex: 0]
|
||||
: [[context activeUser] login]);
|
||||
return login;
|
||||
}
|
||||
|
||||
- (NSString *) currentCalendarStyle
|
||||
|
||||
Reference in New Issue
Block a user