diff --git a/ChangeLog b/ChangeLog index 55cdd0bbe..23643ecd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-10-12 Wolfgang Sourdeau + * UI/SOGoUI/UIxComponent.m ([UIxComponent + -jsCloseWithRefreshMethod:methodName]): new method with explicit purpose. + * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -saveAction]), UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -saveAction]), UI/MailerUI/UIxMailEditor.m ([UIxMailEditor diff --git a/UI/SOGoUI/UIxComponent.h b/UI/SOGoUI/UIxComponent.h index 87edb9836..ff5996842 100644 --- a/UI/SOGoUI/UIxComponent.h +++ b/UI/SOGoUI/UIxComponent.h @@ -60,6 +60,8 @@ - (NSString *)ownMethodName; - (NSString *)userFolderPath; +- (NSString *) applicationPath; + - (NSString *)ownPath; - (NSString *)relativePathToUserFolderSubPath:(NSString *)_sub; @@ -70,6 +72,8 @@ - (BOOL) hideFrame; +- (UIxComponent *) jsCloseWithRefreshMethod: (NSString *) methodName; + /* SoUser */ - (SoUser *)user; - (NSString *)shortUserNameForDisplay; diff --git a/UI/SOGoUI/UIxComponent.m b/UI/SOGoUI/UIxComponent.m index a78424aa4..268afeb56 100644 --- a/UI/SOGoUI/UIxComponent.m +++ b/UI/SOGoUI/UIxComponent.m @@ -32,6 +32,8 @@ #import #import +#import "../Common/UIxJSClose.h" + #import "UIxComponent.h" @interface UIxComponent (PrivateAPI) @@ -398,6 +400,17 @@ static BOOL uixDebugEnabled = NO; return ([[self queryParameterForKey: @"noframe"] boolValue]); } +- (UIxComponent *) jsCloseWithRefreshMethod: (NSString *) methodName +{ + UIxJSClose *jsClose; + + jsClose = [UIxJSClose new]; + [jsClose autorelease]; + [jsClose setRefreshMethod: methodName]; + + return jsClose; +} + /* SoUser */ - (SoUser *) user