From: Jan Schneider Date: Mon, 9 Nov 2009 16:23:22 +0000 (+0100) Subject: We need to compare against the month of the current view, not of today. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=be59b0c9420880d7e97aa782d6c266021c1447ac;p=horde.git We need to compare against the month of the current view, not of today. --- 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; }