From: Jan Schneider Date: Mon, 21 Jun 2010 17:05:01 +0000 (+0200) Subject: Only insert events if we actually have a view where we can insert. We call X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2f6290e7f5cd64a206434f76a0354e2d7fcc2c5d;p=horde.git Only insert events if we actually have a view where we can insert. We call this method now from the task view too. --- 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); } },