Only set IDs for days of the current month.
authorJan Schneider <jan@horde.org>
Mon, 30 Nov 2009 17:13:50 +0000 (18:13 +0100)
committerJan Schneider <jan@horde.org>
Mon, 30 Nov 2009 17:13:50 +0000 (18:13 +0100)
kronolith/js/kronolith.js

index 3080d2a..d8f657e 100644 (file)
@@ -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 &&