From fbe707875def6356dde1a21602c0e232e03c85f5 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 8 Apr 2009 22:44:31 +0200 Subject: [PATCH] Don't load week view if on the same week. --- kronolith/js/src/kronolith.js | 1 + 1 file changed, 1 insertion(+) diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index 0c3b8d23c..640a80fcc 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -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; } -- 2.11.0