mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: 3caba1b53d3ce2662555f79699770572cb4ed179
Monotone-Revision: 91deb9a44a0ca5b91cd6075bd2e15fb44bf6bae8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-13T23:31:45 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -23,8 +23,13 @@
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSCalendarDate.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSUserDefaults.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
#import <NGObjWeb/WOResponse.h>
|
||||
|
||||
#import <SOGo/SOGoUser.h>
|
||||
|
||||
#import "UIxCalMainView.h"
|
||||
|
||||
#import <Appointments/SOGoAppointmentFolder.h>
|
||||
@@ -97,8 +102,7 @@ static NSMutableArray *yearMenuItems = nil;
|
||||
NSArray *ids;
|
||||
SOGoAppointmentFolder *clientObject;
|
||||
|
||||
ids = [[self queryParameterForKey: @"ids"]
|
||||
componentsSeparatedByString: @"/"];
|
||||
ids = [[self queryParameterForKey: @"ids"] componentsSeparatedByString: @"/"];
|
||||
if (ids)
|
||||
{
|
||||
clientObject = [self clientObject];
|
||||
@@ -108,4 +112,20 @@ static NSMutableArray *yearMenuItems = nil;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id) updateCalendarsAction
|
||||
{
|
||||
WOResponse *response;
|
||||
NSUserDefaults *ud;
|
||||
|
||||
ud = [[context activeUser] userDefaults];
|
||||
[ud setObject: [self queryParameterForKey: @"ids"]
|
||||
forKey: @"calendaruids"];
|
||||
[ud synchronize];
|
||||
response = [context response];
|
||||
[response setStatus: 200];
|
||||
[response setHeader: @"text/html; charset=\"utf-8\"" forKey: @"content-type"];
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user