mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-22 21:39:28 +00:00
Monotone-Parent: 2fdf0ead0781ef2362dd389811d5db44ca4cc84a
Monotone-Revision: c91eef7edcfd08d414664c25a590b6268a7e58e2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-29T04:19:32 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -7,7 +7,7 @@ var listFilter = 'view_today';
|
||||
var listOfSelection = null;
|
||||
var selectedCalendarCell;
|
||||
|
||||
var showCompletedTasks;;
|
||||
var showCompletedTasks;
|
||||
|
||||
var currentDay = '';
|
||||
|
||||
@@ -1402,6 +1402,10 @@ function refreshEvents() {
|
||||
|
||||
function refreshTasks(setUserDefault) {
|
||||
var url = "taskslist?show-completed=" + showCompletedTasks;
|
||||
/* 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. */
|
||||
if (setUserDefault == 1)
|
||||
url += "&setud=1";
|
||||
refreshAlarms();
|
||||
@@ -2100,7 +2104,7 @@ function onFolderSubscribeCB(folderData) {
|
||||
appendCalendar(folderData["folderName"], folderData["folder"]);
|
||||
refreshEvents();
|
||||
refreshTasks();
|
||||
changeCalendarDisplay();
|
||||
changeCalendarDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2276,6 +2280,8 @@ function drawNowLine () {
|
||||
function initCalendars() {
|
||||
sorting["attribute"] = "start";
|
||||
sorting["ascending"] = true;
|
||||
/* FIXME: does this work at all? ShowCompletedTasks is in
|
||||
UserSettings["Calendar"]... */
|
||||
showCompletedTasks = UserDefaults['ShowCompletedTasks'];
|
||||
|
||||
if (!$(document.body).hasClassName("popup")) {
|
||||
|
||||
Reference in New Issue
Block a user