Create event cache for current view when adding a new calendar.
authorJan Schneider <jan@horde.org>
Tue, 17 Aug 2010 12:27:07 +0000 (14:27 +0200)
committerJan Schneider <jan@horde.org>
Tue, 17 Aug 2010 12:27:07 +0000 (14:27 +0200)
kronolith/js/kronolith.js

index 3482588..3976551 100644 (file)
@@ -3475,6 +3475,7 @@ KronolithCore = {
                 }
                 Kronolith.conf.calendars[type][r.response.calendar] = cal;
                 this.insertCalendarInList(type, r.response.calendar, cal);
+                this.storeCache($H(), [type, r.response.calendar], this.viewDates(this.date, this.view), true);
             }
         }
         form.down('.kronolithCalendarSave').enable();