From: Jan Schneider Date: Mon, 30 Nov 2009 17:13:50 +0000 (+0100) Subject: Only set IDs for days of the current month. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a7b9f8e22720be0c1d01df68d3d90174c5bf0c2e;p=horde.git Only set IDs for days of the current month. --- 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 &&