From: Jan Schneider Date: Fri, 23 Oct 2009 17:40:53 +0000 (+0200) Subject: Always show six weeks in minical so that the navigation doesn't jump around. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5bd40a32d840d9e799ae4dbd67c6f97d197a36a1;p=horde.git Always show six weeks in minical so that the navigation doesn't jump around. --- 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');