Link to day views from agenda.
authorJan Schneider <jan@horde.org>
Sun, 7 Jun 2009 15:54:09 +0000 (17:54 +0200)
committerJan Schneider <jan@horde.org>
Sun, 7 Jun 2009 15:54:09 +0000 (17:54 +0200)
kronolith/js/src/kronolith.js
kronolith/themes/screen.css

index 03de7e2..dbb3197 100644 (file)
@@ -1619,6 +1619,17 @@ KronolithCore = {
                 e.stop();
                 return;
 
+            case 'kronolithViewAgenda':
+                var tmp = orig;
+                if (tmp.tagName != 'td') {
+                    tmp.up('td');
+                }
+                if (tmp && tmp.readAttribute('date')) {
+                    this.go('day:' + tmp.readAttribute('date'));
+                }
+                e.stop();
+                return;
+
             case 'kronolithSearchButton':
                 this.go('search:' + $F('kronolithSearchContext') + ':' + $F('kronolithSearchTerm'))
                 break;
index cf6d10c..0bdefb7 100644 (file)
@@ -1095,13 +1095,11 @@ div.kronolithView div.kronolithViewBody div.kronolithRow {
 }
 
 /* Main view agenda. */
-#kronolithViewAgenda thead.kronolithViewHead td.kronolithFirstCol {
-    width: 70px;
-}
-#kronolithViewAgenda tbody.kronolithViewBody td.kronolithFirstCol {
+#kronolithViewAgenda td.kronolithFirstCol {
     width: 70px;
     padding: 4px;
     text-align: left;
+    cursor: pointer;
 }
 #kronolithViewAgenda caption {
     margin-left: 2px;