Make 'show completed tasks' persistent

This commit is contained in:
Francis Lachapelle
2013-01-24 18:50:20 -05:00
parent dfe49ea3b4
commit 9ed53cbab3
4 changed files with 13 additions and 9 deletions
+1 -7
View File
@@ -2198,20 +2198,14 @@ function refreshEvents() {
function refreshTasks(setUserDefault) {
var titleSearch;
var value = search["tasks"]["value"];
var setud;
if (value && value.length)
titleSearch = "&search=" + escape(value.utf8encode());
else
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)
setud = "&setud=1";
titleSearch += "&setud=1";
refreshAlarms();