mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
Monotone-Parent: 3fa7e256bafe25f933cbd83e48a106452288b415
Monotone-Revision: d5dd8c43fa224e4e1e1c3f565305173fb41d4521 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-03-25T20:17:50 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -103,6 +103,8 @@
|
||||
if (!forwardOptions)
|
||||
forwardOptions = [NSMutableDictionary new];
|
||||
}
|
||||
|
||||
hasChanged = NO;
|
||||
}
|
||||
|
||||
return self;
|
||||
@@ -126,6 +128,16 @@
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) setHasChanged: (BOOL) newHasChanged
|
||||
{
|
||||
hasChanged = newHasChanged;
|
||||
}
|
||||
|
||||
- (BOOL) hasChanged
|
||||
{
|
||||
return hasChanged;
|
||||
}
|
||||
|
||||
- (void) setItem: (NSString *) newItem
|
||||
{
|
||||
ASSIGN (item, newItem);
|
||||
@@ -913,6 +925,7 @@
|
||||
id <WOActionResults> results;
|
||||
WORequest *request;
|
||||
SOGoDomainDefaults *dd;
|
||||
NSString *method;
|
||||
|
||||
request = [context request];
|
||||
if ([[request method] isEqualToString: @"POST"])
|
||||
@@ -939,7 +952,12 @@
|
||||
acquire: NO];
|
||||
[account updateFilters];
|
||||
|
||||
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