From 2f6290e7f5cd64a206434f76a0354e2d7fcc2c5d Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 21 Jun 2010 19:05:01 +0200 Subject: [PATCH] Only insert events if we actually have a view where we can insert. We call this method now from the task view too. --- kronolith/js/kronolith.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index ceb2d3e51..0b0bbddf3 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -1425,7 +1425,10 @@ KronolithCore = { return; } - if (this.view != 'year' || !$H(this.eventsLoading).size()) { + if (this.view == 'day' || + this.view == 'week' || + this.view == 'month' || + (this.view == 'year' && !$H(this.eventsLoading).size())) { this.insertEvents(dates, this.view, r.response.cal); } }, -- 2.11.0