From 7aca9d276b9d5a1dddd821eb13ce28c1e48175ba Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 1 Apr 2011 18:40:51 +0000 Subject: [PATCH] Monotone-Parent: f0f12cec0b288caae2086872cad9e044311da3b9 Monotone-Revision: 20415379d4ad22b602692f50041a0eb207e1d1fb Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-04-01T18:40:51 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/WebServerResources/SchedulerUI.js | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 95e2f8bd4..5c01d3c85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-04-01 Wolfgang Sourdeau + * UI/WebServerResources/SchedulerUI.js (initCalendars): initialize + "showCompletedTaskls" to 0 when the ShowCompletedTasks settings + variable is not available. + * SoObjects/Appointments/SOGoCalendarComponent.m (-contentAsString): strip alarms from component if the alarms are disabled on the containing calendar. diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index 6b21df15e..7572e7873 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -2917,7 +2917,12 @@ function initCalendars() { var controller = new SOGoTabsController(); controller.attachToTabsContainer(tabsContainer); - showCompletedTasks = parseInt(UserSettings['ShowCompletedTasks']); + if (UserSettings['ShowCompletedTasks']) { + showCompletedTasks = parseInt(UserSettings['ShowCompletedTasks']); + } + else { + showCompletedTasks = 0; + } initDateSelectorEvents(); initCalendarSelector(); configureSearchField();