New user setting to set calendars display order

This commit is contained in:
Francis Lachapelle
2016-04-27 15:25:01 -04:00
parent d19f1572ae
commit 6cb513f30b
4 changed files with 92 additions and 11 deletions
+22 -1
View File
@@ -1,6 +1,6 @@
/* UIxCalMainView.m - this file is part of SOGo
*
* Copyright (C) 2006-2015 Inverse inc.
* Copyright (C) 2006-2016 Inverse inc.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -301,6 +301,27 @@
return (state && [state compare: @"collapse"] == NSOrderedSame)? @"display: none;" : @"";
}
- (WOResponse *) saveFoldersOrderAction
{
WORequest *request;
NSDictionary *params;
NSArray *list;
[self _setupContext];
request = [context request];
params = [[request contentAsString] objectFromJSONString];
list = [params objectForKey: @"folders"];
if (list)
[moduleSettings setObject: list
forKey: @"FoldersOrder"];
else
[moduleSettings removeObjectForKey: @"FoldersOrder"];
[us synchronize];
return [self responseWithStatus: 204];
}
- (unsigned int) firstDayOfWeek
{
SOGoUserDefaults *ud;