Fix date no longer being an attribute.
authorJan Schneider <jan@horde.org>
Tue, 27 Oct 2009 22:44:51 +0000 (23:44 +0100)
committerJan Schneider <jan@horde.org>
Wed, 28 Oct 2009 14:54:20 +0000 (15:54 +0100)
kronolith/js/kronolith.js

index 4cc12aa..aa2e3f3 100644 (file)
@@ -984,7 +984,7 @@ KronolithCore = {
             }, this);
 
             if (view == 'year') {
-                td = $('kronolithYearTable' + day.getMonth()).down('td[date=' + date + ']');
+                td = $('kronolithYearTable' + day.getMonth()).select('td').find(function(elm) { return elm.retrieve('date') == date; });
                 td.className = '';
                 if (title) {
                     td.writeAttribute('title', title).addClassName('kronolithHasEvents');