mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 04:20:33 +00:00
Monotone-Parent: 3b18f3c2b4f3747d9082d436755de2ea68743aa6
Monotone-Revision: 4a3ebcd0ca1da0a489361dc8b6f9f0526efc8c15 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-12T21:00:35 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2006-10-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Scheduler/UIxCalMainView.m ([UIxCalMainView
|
||||
-batchDeleteAction]): new method to delete selected entries in the
|
||||
lists.
|
||||
|
||||
* SoObjects/Appointments/SOGoAppointmentFolder.m
|
||||
([SOGoAppointmentFolder -deleteEntriesWithIds:ids]): new method
|
||||
that delete identified entries in batch.
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
|
||||
#import "UIxCalMainView.h"
|
||||
|
||||
#import <Appointments/SOGoAppointmentFolder.h>
|
||||
|
||||
static NSMutableArray *monthMenuItems = nil;
|
||||
static NSMutableArray *yearMenuItems = nil;
|
||||
|
||||
@@ -90,4 +92,20 @@ static NSMutableArray *yearMenuItems = nil;
|
||||
return yearMenuItem;
|
||||
}
|
||||
|
||||
- (id) batchDeleteAction
|
||||
{
|
||||
NSArray *ids;
|
||||
SOGoAppointmentFolder *clientObject;
|
||||
|
||||
ids = [[self queryParameterForKey: @"ids"]
|
||||
componentsSeparatedByString: @"/"];
|
||||
if (ids)
|
||||
{
|
||||
clientObject = [self clientObject];
|
||||
[clientObject deleteEntriesWithIds: ids];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user