Show tooltips with event information in year view.
authorJan Schneider <jan@horde.org>
Fri, 5 Jun 2009 13:30:39 +0000 (15:30 +0200)
committerJan Schneider <jan@horde.org>
Fri, 5 Jun 2009 14:25:43 +0000 (16:25 +0200)
kronolith/js/src/kronolith.js
kronolith/lib/Kronolith.php

index 15b03fe..2725a4b 100644 (file)
@@ -838,10 +838,15 @@ KronolithCore = {
                                         event.value.x == Kronolith.conf.status.confirmed) {
                                             busy = true;
                                     }
+                                    title += '<br />';
                                 });
                                 if (title) {
                                     td = $('kronolithYearTable' + month).down('td[date=' + dateString + ']');
                                     td.writeAttribute('title', title).addClassName('kronolithHasEvents');
+                                    if (td.readAttribute('nicetitle')) {
+                                        ToolTips.detach(td);
+                                    }
+                                    ToolTips.attach(td);
                                     if (busy) {
                                         td.addClassName('kronolithIsBusy');
                                     }
index 40847fe..2b00a7b 100644 (file)
@@ -69,7 +69,7 @@ class Kronolith
     public static function header($title, $scripts = array())
     {
         // Don't autoload any javascript files.
-        Horde::disableAutoloadHordeJS();
+        //Horde::disableAutoloadHordeJS();
 
         // Need to include script files before we start output
         Horde::addScriptFile('prototype.js', 'horde', true);