From a7b9f8e22720be0c1d01df68d3d90174c5bf0c2e Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 30 Nov 2009 18:13:50 +0100 Subject: [PATCH] Only set IDs for days of the current month. --- 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 3080d2a53..d8f657e84 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -787,11 +787,10 @@ KronolithCore = { } // Insert day cell. td = new Element('td').store('date', dateString); - if (!Object.isUndefined(idPrefix)) { - td.id = idPrefix + dateString; - } if (day.getMonth() != date.getMonth()) { td.addClassName('kronolithMinicalEmpty'); + } else if (!Object.isUndefined(idPrefix)) { + td.id = idPrefix + dateString; } // Highlight days currently being displayed. if (view && -- 2.11.0