See ChangeLog.

Monotone-Parent: 1ea08f6ec84d602c5e78b6c440e2f7d6297a82cd
Monotone-Revision: 61b12be970a9603306d37277ee431b6fd5ab89cd

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-12-02T07:22:47
This commit is contained in:
Francis Lachapelle
2011-12-02 07:22:47 +00:00
parent c2229901b9
commit 03625e4aae
30 changed files with 904 additions and 240 deletions

View File

@@ -447,6 +447,24 @@ static NSMutableArray *abbrMonthLabelKeys = nil;
inContext: context]);
}
- (BOOL) singleWindowModeEnabled
{
//WEClientCapabilities *cc;
NSString *value;
BOOL result;
//cc = [[context request] clientCapabilities];
//NSLog(@"User agent = %@, Type = %@, OS = %@, CPU = %@, Browser major version = %i", [cc userAgent], [cc userAgentType], [cc os], [cc cpu], [cc majorVersion]);
value = [[context request] cookieValueForKey: @"SOGoWindowMode"];
result = ([value isEqualToString: @"single"]);
NSLog(@"Single window mode %@", result?@"enabled":@"disabled");
return result;
}
/* SoUser */
- (NSString *) shortUserNameForDisplay