Check that the start date is between the view's start and end date.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 25 May 2010 16:44:26 +0000 (12:44 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 25 May 2010 16:44:26 +0000 (12:44 -0400)
start date is the start of the received events list, not the start
of the view.

kronolith/js/kronolith.js

index 04246a8..29ece7d 100644 (file)
@@ -1354,7 +1354,8 @@ KronolithCore = {
         // Check if the result is still for the current view.
         currentDates = this.viewDates(this.date, this.view);
         if (r.response.view != this.view ||
-            !currentDates[0].equals(start)) {
+            !start.between(currentDates[0], currentDates[1])) {
+
             return;
         }