From cc709974048df4c20863d9098b214922bd0ef876 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 5 Jun 2009 19:05:24 +0200 Subject: [PATCH] Reload events when turning off calendars. --- kronolith/js/src/kronolith.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index edc787162..e65429fc2 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -1669,7 +1669,8 @@ KronolithCore = { if (calClass) { var calendar = elt.readAttribute('calendar'); Kronolith.conf.calendars[calClass][calendar].show = !Kronolith.conf.calendars[calClass][calendar].show; - if (typeof this.ecache.get(calClass) == 'undefined' || + if (this.view == 'year' || + typeof this.ecache.get(calClass) == 'undefined' || typeof this.ecache.get(calClass).get(calendar) == 'undefined') { var dates = this.viewDates(this.date, this.view); this._loadEvents(dates[0], dates[1], this.view, [[calClass, calendar]]); -- 2.11.0