[kronolith] hover time suggestion

Payton payton at repligen.com
Wed Dec 17 13:05:39 PST 2003


I'm not the best at tweaking horde code, but here is a patch to perform 
what I suggested. It modifies the file kronolith/lib/Driver.php.
-Payton

On Wed, 17 Dec 2003, Jan Schneider wrote:

> Zitat von Payton <payton at repligen.com>:
> 
> > Just a suggestion for a feature which people might find useful: to have
> > the time as well as the description of an event be displayed when the
> > mouse hovers over an event (particularily on the month-view).
> 
> Sounds useful. Patch?
> 
> Jan.
> 
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - discover your knowledge
> http://www.tip4all.de - Deine private Tippgemeinschaft
> 
> -- 
> Kronolith mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
> 
-------------- next part --------------
--- Driver.php	Wed Dec 17 15:56:25 2003
+++ Driver.php.modified	Wed Dec 17 15:56:16 2003
@@ -1276,7 +1276,8 @@
                 $url = Util::addParameter($url, 'calendar=' . $this->getCalendar());
                 $url = Util::addParameter($url, 'timestamp=' . $timestamp);
                 $url = Horde::applicationUrl($url);
-                $link .= Horde::linkTooltip($url, $this->title, 'event', '', '', $this->description);
+		$event_time = date($prefs->getValue('twentyFour') ? ' G:i' : ' g:i a', $this->getStartTimestamp());
+                $link .= Horde::linkTooltip($url, $this->title, 'event', '', '', $event_time.($this->description?' : '.$this->description:''));
             } elseif (isset($this->taskID)) {
                 $link .= Horde::link(Horde::url($GLOBALS['registry']->link('tasks/show', array('task' => $this->taskID, 'tasklist' => $this->tasklistID))), $this->title, 'event');
             } elseif (isset($this->meetingID)) {


More information about the kronolith mailing list