Require a supported calendar type for editing.
authorJan Schneider <jan@horde.org>
Tue, 20 Jul 2010 21:01:32 +0000 (23:01 +0200)
committerJan Schneider <jan@horde.org>
Mon, 26 Jul 2010 21:34:07 +0000 (23:34 +0200)
kronolith/js/kronolith.js

index 81338a4..0e62377 100644 (file)
@@ -2736,6 +2736,9 @@ KronolithCore = {
         this.quickClose();
 
         var type = calendar.split('|')[0], cal = calendar.split('|')[1];
+        if (!$w('internal tasklists remote holiday').include(type)) {
+            return;
+        }
 
         if (cal &&
             (Object.isUndefined(Kronolith.conf.calendars[type]) ||