+ log("updateData(): meetingList.sort()");\r
+ meetingList.sort(sortCalendarEntries);\r
+\r
+ // todos don't, they start on 00:00 hrs., but should be visible anyway\r
+ // this will generate a list of passed todos. We have to check if they have been marked as "done" yet\r
+ if (config['includeTodos'].Value) {\r
+ var todayTodoList = [];\r
+ for(var i=0; i < calendarList.length; i++) {\r
+ // ignore excluded calendars\r
+ if (config['excludedCalendars'].Value.indexOf(calendarList[i]) != -1)\r
+ continue;\r
+ var todayTodoListFiltering = {\r
+ Type:'CalendarEntry',\r
+ Filter:{\r
+ CalendarName: calendarList[i],\r
+ Type: 'ToDo',\r
+ StartRange: (new Date(now.getFullYear() - 1, now.getMonth(), now.getDate(), 0, 0, 0)),\r
+ EndRange: (new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 1))\r
+ }\r
+ }\r
+ var todayTodoResult = calendarService.IDataSource.GetList(todayTodoListFiltering);\r
+ var list = todayTodoResult.ReturnValue;\r
+ todayTodoList = todayTodoList.concat(listToArray(list, calendarList[i]));\r
+ }\r
+ log("updateData(): todayTodoList.sort()");\r
+ todayTodoList.sort(sortCalendarEntries);\r
+ entryLists = [todayTodoList, meetingList];\r
+ } else {\r
+ entryLists = [meetingList];\r
+ }\r
+ lastReloadTime = new Date();\r
+ } catch(e) {\r
+ error('loading Calendar items list:' + e + ', line ' + e.line);\r
+ return;\r