From be59b0c9420880d7e97aa782d6c266021c1447ac Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 9 Nov 2009 17:23:22 +0100 Subject: [PATCH] We need to compare against the month of the current view, not of today. --- kronolith/js/kronolith.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 052ed1b81..127e3a802 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -2061,18 +2061,17 @@ KronolithCore = { return; case 'kronolithMinical': - var today = new Date(); if (orig.id == 'kronolithMinicalPrev') { var date = this.parseDate($('kronolithMinicalDate').retrieve('date')); date.previous().month(); - this.updateMinical(date, date.getMonth() == today.getMonth() ? this.view : undefined); + this.updateMinical(date, date.getMonth() == this.date.getMonth() ? this.view : undefined); e.stop(); return; } if (orig.id == 'kronolithMinicalNext') { var date = this.parseDate($('kronolithMinicalDate').retrieve('date')); date.next().month(); - this.updateMinical(date, date.getMonth() == today.getMonth() ? this.view : null); + this.updateMinical(date, date.getMonth() == this.date.getMonth() ? this.view : null); e.stop(); return; } -- 2.11.0