Make 'show completed tasks' persistent
This commit is contained in:
parent
dfe49ea3b4
commit
9ed53cbab3
3
NEWS
3
NEWS
|
@ -2,7 +2,7 @@
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
New features
|
New features
|
||||||
- sogo-tool: new "dump-defaults" command to easily create /etc/sogo.conf
|
- sogo-tool: new "dump-defaults" command to easily create /etc/sogo/sogo.conf
|
||||||
|
|
||||||
Enhancements
|
Enhancements
|
||||||
- The sogo user is now a system user.
|
- The sogo user is now a system user.
|
||||||
|
@ -17,6 +17,7 @@ Enhancements
|
||||||
- added Finnish translation - thanks to Kari Salmu
|
- added Finnish translation - thanks to Kari Salmu
|
||||||
- updated translations
|
- updated translations
|
||||||
- recurrence-id of all-day events is now set as a proper date with no time
|
- recurrence-id of all-day events is now set as a proper date with no time
|
||||||
|
- 'show completed tasks' is now persistent
|
||||||
|
|
||||||
Bug fixes
|
Bug fixes
|
||||||
- fixed usage of browser's language for the login page
|
- fixed usage of browser's language for the login page
|
||||||
|
|
|
@ -212,6 +212,15 @@
|
||||||
return (list && [list compare: @"tasksListView"] == NSOrderedSame)? @"active" : @"";
|
return (list && [list compare: @"tasksListView"] == NSOrderedSame)? @"active" : @"";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL) showCompletedTasks
|
||||||
|
{
|
||||||
|
BOOL show;
|
||||||
|
|
||||||
|
[self _setupContext];
|
||||||
|
|
||||||
|
return [[us objectForKey: @"ShowCompletedTasks"] boolValue];
|
||||||
|
}
|
||||||
|
|
||||||
- (WOResponse *) saveSelectedListAction
|
- (WOResponse *) saveSelectedListAction
|
||||||
{
|
{
|
||||||
WORequest *request;
|
WORequest *request;
|
||||||
|
|
|
@ -182,7 +182,7 @@
|
||||||
autocomplete="off" type="text"
|
autocomplete="off" type="text"
|
||||||
menuid="taskSearchMenu" />
|
menuid="taskSearchMenu" />
|
||||||
</span>
|
</span>
|
||||||
<input id="showHideCompletedTasks" type="checkbox" class="checkBox"/><var:string label:value="Show completed tasks"/>
|
<input id="showHideCompletedTasks" type="checkbox" class="checkBox" var:checked="showCompletedTasks"/><var:string label:value="Show completed tasks"/>
|
||||||
</div>
|
</div>
|
||||||
<table id="tasksList" cellspacing="0">
|
<table id="tasksList" cellspacing="0">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -2198,20 +2198,14 @@ function refreshEvents() {
|
||||||
function refreshTasks(setUserDefault) {
|
function refreshTasks(setUserDefault) {
|
||||||
var titleSearch;
|
var titleSearch;
|
||||||
var value = search["tasks"]["value"];
|
var value = search["tasks"]["value"];
|
||||||
var setud;
|
|
||||||
|
|
||||||
if (value && value.length)
|
if (value && value.length)
|
||||||
titleSearch = "&search=" + escape(value.utf8encode());
|
titleSearch = "&search=" + escape(value.utf8encode());
|
||||||
else
|
else
|
||||||
titleSearch = "";
|
titleSearch = "";
|
||||||
|
|
||||||
/* TODO: the logic behind this should be reimplemented properly:
|
|
||||||
the "taskslist" method should save the status when the 'show-completed'
|
|
||||||
is set to true and revert to the current status when that parameter is
|
|
||||||
NOT passed via the url. */
|
|
||||||
setud = "";
|
|
||||||
if (setUserDefault == 1)
|
if (setUserDefault == 1)
|
||||||
setud = "&setud=1";
|
titleSearch += "&setud=1";
|
||||||
|
|
||||||
refreshAlarms();
|
refreshAlarms();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue