Fix logic.
authorJan Schneider <jan@horde.org>
Sun, 7 Jun 2009 15:09:32 +0000 (17:09 +0200)
committerJan Schneider <jan@horde.org>
Sun, 7 Jun 2009 15:09:32 +0000 (17:09 +0200)
kronolith/js/src/kronolith.js

index 8fb0b33..a65611d 100644 (file)
@@ -850,9 +850,8 @@ KronolithCore = {
 
             this._getCacheForDate(date).sortBy(this._sortEvents).each(function(event) {
                 switch (view) {
-                case 'day':
-                case 'week':
                 case 'month':
+                case 'agenda':
                     if (calendar != event.value.calendar) {
                         return;
                     }
@@ -892,6 +891,8 @@ KronolithCore = {
 
             day.next().day();
         }
+        // Workaround Firebug bug.
+        Prototype.emptyFunction();
     },
 
     /**