? event_block_tooltip.patch
Index: event.css
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/event/event.css,v
retrieving revision 1.16
diff -r1.16 event.css
274a275,293
> 
> .event-calendar td span { 
>   background: #ECECEC none repeat scroll 0%;
>   border: 1px solid #CCCCCC;
>   display: none;
>   padding: 0px 0px 0px 0px;
>   position: absolute;
>   text-align: left;
>   width: 100px;
>   z-index: 100;
> }
> 
> .event-calendar td.over span, .event-calendar td.over a {
>  display: block;
> }
> .event-calendar td.over span { 
>  margin-left: -50px;
>  line-height: 100%;
> }
Index: event.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/event/event.module,v
retrieving revision 1.346
diff -r1.346 event.module
431c431,442
<       print event_calendar_month('block', $date);
---
>       if (arg(5) == 'day') {
> 	event_calendar_data($date, $view, $types, $terms, 'prepopulate');
> 	$nodes = event_calendar_data($date, $view, $types, $terms, 'lookup');
> 	$items = array();
> 	foreach ($nodes as $node) {
> 	 $items[] = l($node->title, "node/$node->nid", array('title' => $node->title));
> 	}
> 	print theme('event_upcoming_block', $items);
>       }
>       else {
> 	print event_calendar_month('block', $date);
>       }
Index: eventblock.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/event/eventblock.js,v
retrieving revision 1.3
diff -r1.3 eventblock.js
3a4
>   $(document).ready(eventAutoAttachLink);
13a15
> }
14a17,51
> /**
>  * Attaches the link tooltip behaviour to day cells.
>  */
> function eventAutoAttachLink() {
>     var dlnk,dspan,dtd;
>     dlnk=$("#block-event-0 div.content td a");
>     for(i=0;i<dlnk.length;i++) {
> 	dtd=dlnk[i].parentNode;
> 	dtd.onmouseover=function(){blockTooltip(this);};
> 	dtd.onmouseout=function(){blockTooltip(this,1);};
> 	dspan=document.createElement("span");
> 	dtd.appendChild(dspan);
>     }
> }
> 
> /**
>  * Attaches the link tooltip behaviour to links tagged with 'cday' class.
>  */
> function blockTooltip(element,hide) {
>     if (hide) {
> 	element.className='';
>     } else {
> 	element.className+=" over";
> 	if (element.lastChild.innerHTML=='') {
> 	    element.progress = new Drupal.progressBar('updateprogress');
> 	    element.lastChild.appendChild(element.progress.element);
> 	    $.ajax({
> 	     type: "GET",
> 	     url: element.firstChild.href.replace("day", "block/day"),
> 	     success: function(msg){
> 	      element.lastChild.innerHTML=msg;
> 	     }
> 	    });
> 	}
>     }
58a96
> 
71a110
>     eventAutoAttachLink();
