Don't load week view if on the same week.
authorJan Schneider <jan@horde.org>
Wed, 8 Apr 2009 20:44:31 +0000 (22:44 +0200)
committerJan Schneider <jan@horde.org>
Wed, 8 Apr 2009 21:41:10 +0000 (23:41 +0200)
kronolith/js/src/kronolith.js

index 0c3b8d2..640a80f 100644 (file)
@@ -301,6 +301,7 @@ KronolithCore = {
                 if (this.view == loc && date.getYear() == this.date.getYear() &&
                     ((loc == 'year') ||
                      (loc == 'month' && date.getMonth() == this.date.getMonth()) ||
+                     (loc == 'week' && date.getWeek() == this.date.getWeek()) ||
                      (loc == 'day' && date.dateString() == this.date.dateString()))) {
                          return;
                 }