From 88df544e72ce06058aece1cbe6f215c63b23c83e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 28 Nov 2005 16:58:05 +0000 Subject: [PATCH] dirty hack, to get the IE to use onclick in a partly empty div and not "click throught" it to the underlying div --- calendar/inc/class.uiviews.inc.php | 2 ++ calendar/templates/default/event_widget.tpl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.uiviews.inc.php b/calendar/inc/class.uiviews.inc.php index 585462ec17..f3f0df6970 100644 --- a/calendar/inc/class.uiviews.inc.php +++ b/calendar/inc/class.uiviews.inc.php @@ -937,6 +937,8 @@ class uiviews extends uical '/calendar/inc/gradient.php?color1='.urlencode($bodybgcolor1).'&color2='.urlencode($bodybgcolor2). '&width='.$width.') repeat-y '.$bodybgcolor2, 'Small' => $width > $small_trigger_width ? '' : 'Small', // to use in css class-names + // otherwise a click in empty parts of the event, will "click through" and create a new event + 'ienonsens' => $this->html->user_agent == 'msie' ? '
'.str_repeat(' ',4).'
' : '', )); foreach(array( 'upper_left'=>array('width'=>-$corner_radius,'height'=>$header_height,'border'=>0,'bgcolor'=>$headerbgcolor), diff --git a/calendar/templates/default/event_widget.tpl b/calendar/templates/default/event_widget.tpl index 1f9cb078d2..3bcf2206d9 100644 --- a/calendar/templates/default/event_widget.tpl +++ b/calendar/templates/default/event_widget.tpl @@ -8,7 +8,7 @@

{body_icons}
- {title}

+ {title}

{ienonsens}