mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 07:47:12 +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:
1 parent
4881f4bc40
commit
7827ceeb56
5 files changed
+50
-1
No files matched your search
@@ -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