Only insert events if we actually have a view where we can insert. We call
authorJan Schneider <jan@horde.org>
Mon, 21 Jun 2010 17:05:01 +0000 (19:05 +0200)
committerJan Schneider <jan@horde.org>
Mon, 21 Jun 2010 17:05:01 +0000 (19:05 +0200)
this method now from the task view too.

kronolith/js/kronolith.js

index ceb2d3e..0b0bbdd 100644 (file)
@@ -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);
         }
     },