mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 11:25:24 +00:00
New user setting to set calendars display order
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user