Fix tasklist detection.
authorJan Schneider <jan@horde.org>
Thu, 12 Nov 2009 14:11:14 +0000 (15:11 +0100)
committerJan Schneider <jan@horde.org>
Thu, 12 Nov 2009 21:35:23 +0000 (22:35 +0100)
kronolith/js/kronolith.js

index fce244b..60fc0e2 100644 (file)
@@ -1442,7 +1442,7 @@ KronolithCore = {
             taskLists = [];
             // FIXME: Temporary hack to get the tasklists
             $H(Kronolith.conf.calendars.external).each(function(cal) {
-                if (cal.value.api = 'Tasks' && cal.value.show)
+                if (cal.key.startsWith('tasks') && cal.value.show)
                 {
                     taskLists.push(cal.key.substring(6));
                 }