Fix opening remote events.
authorJan Schneider <jan@horde.org>
Mon, 10 May 2010 15:34:11 +0000 (17:34 +0200)
committerJan Schneider <jan@horde.org>
Mon, 10 May 2010 15:34:11 +0000 (17:34 +0200)
kronolith/js/kronolith.js

index 5593096..d5ff3b8 100644 (file)
@@ -458,12 +458,13 @@ KronolithCore = {
                 // New event on a certain date.
                 this.editEvent(null, null, locParts[0]);
                 break;
-            case 3:
+            default:
                 // Editing event.
-                this.editEvent(locParts[0], locParts[1], locParts[2]);
+                var date = locParts.pop(),
+                    event = locParts.pop(),
+                    calendar = locParts.join(':');
+                this.editEvent(calendar, event, date);
                 break;
-            default:
-                return;
             }
             this.addHistory(fullloc);
             break;