Fix hightlighting current day in the minical
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 28 Nov 2009 23:33:26 +0000 (18:33 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 28 Nov 2009 23:33:26 +0000 (18:33 -0500)
kronolith/js/kronolith.js

index 5b7eeee..bac9ba5 100644 (file)
@@ -763,6 +763,8 @@ KronolithCore = {
             date7 = date.clone().add(1).week(), today = Date.today(),
             weekStart, weekEnd, weekEndDay, dateString, td, tr, i;
 
+        day = new Date(day.getFullYear(), day.getMonth(), day.getDate(), 0, 0, 0);
+
         // Remove old calendar rows. Maybe we should only rebuild the minical
         // if necessary.
         tbody.childElements().invoke('remove');