From 5bd40a32d840d9e799ae4dbd67c6f97d197a36a1 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 23 Oct 2009 19:40:53 +0200 Subject: [PATCH] Always show six weeks in minical so that the navigation doesn't jump around. --- kronolith/js/kronolith.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 0aa5d957e..a4c654fa1 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -670,13 +670,13 @@ KronolithCore = { { var dates = this.viewDates(date, 'month'), day = dates[0].clone(), date7 = date.clone().add(1).week(), - weekStart, weekEnd, weekEndDay, td, tr; + weekStart, weekEnd, weekEndDay, td, tr, i; // Remove old calendar rows. Maybe we should only rebuild the minical // if necessary. tbody.childElements().invoke('remove'); - while (day.compareTo(dates[1]) < 1) { + for (i = 0; i < 42; i++) { // Create calendar row and insert week number. if (day.getDay() == Kronolith.conf.week_start) { tr = new Element('TR'); -- 2.11.0