mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-29 07:05:26 +00:00
Monotone-Parent: 1816a792f1f7aa94e6d90dc5abea13dcd55ac0c6
Monotone-Revision: 41e367adacf1d4f3454da39608bfaa1cd481222d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-25T18:44:31 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -74,6 +74,7 @@ static BOOL shouldDisplayPasswordChange = NO;
|
||||
locale = [context valueForKey: @"locale"];
|
||||
ASSIGN (daysOfWeek,
|
||||
[locale objectForKey: NSWeekDayNameArray]);
|
||||
hasChanged = NO;
|
||||
}
|
||||
|
||||
return self;
|
||||
@@ -90,6 +91,16 @@ static BOOL shouldDisplayPasswordChange = NO;
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) setHasChanged: (BOOL) newHasChanged
|
||||
{
|
||||
hasChanged = newHasChanged;
|
||||
}
|
||||
|
||||
- (BOOL) hasChanged
|
||||
{
|
||||
return hasChanged;
|
||||
}
|
||||
|
||||
- (void) setItem: (NSString *) newItem
|
||||
{
|
||||
ASSIGN (item, newItem);
|
||||
@@ -503,12 +514,17 @@ static BOOL shouldDisplayPasswordChange = NO;
|
||||
{
|
||||
id <WOActionResults> results;
|
||||
WORequest *request;
|
||||
NSString *method;
|
||||
|
||||
request = [context request];
|
||||
if ([[request method] isEqualToString: @"POST"])
|
||||
{
|
||||
[userDefaults synchronize];
|
||||
results = [self jsCloseWithRefreshMethod: nil];
|
||||
if (hasChanged)
|
||||
method = @"window.location.reload()";
|
||||
else
|
||||
method = nil;
|
||||
results = [self jsCloseWithRefreshMethod: method];
|
||||
}
|
||||
else
|
||||
results = self;
|
||||
|
||||
Reference in New Issue
Block a user