From 4519718d563e3e75b9d5b8d55eba0fa4cb5b4999 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 21 Mar 2006 19:07:31 +0000 Subject: [PATCH] re-enabled for IE the ability to click in the day-, week- and month-view to create an event - thanks to a patch from Claudio Nicora --- calendar/inc/class.uiviews.inc.php | 16 +++++++++------- .../templates/default/images/transparent.gif | Bin 0 -> 814 bytes 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 calendar/templates/default/images/transparent.gif diff --git a/calendar/inc/class.uiviews.inc.php b/calendar/inc/class.uiviews.inc.php index 859fd13edd..77da9df3c6 100644 --- a/calendar/inc/class.uiviews.inc.php +++ b/calendar/inc/class.uiviews.inc.php @@ -756,12 +756,8 @@ class uiviews extends uical ); if ($owner) $linkData['owner'] = $owner; - if ($this->html->user_agent != 'msie') // disable add event for IE, as IE cant manage to get the right div - { - $onclick = 'onclick="'.$this->popup($GLOBALS['egw']->link('/index.php',$linkData)).';return false;"'; - } $html .= $indent."\t".'
'."\n"; + '%;" class="calAddEvent" onclick="'.$this->popup($GLOBALS['egw']->link('/index.php',$linkData)).';return false;">'."\n"; } // displaying all event columns of the day foreach($eventCols as $n => $eventCol) @@ -987,9 +983,15 @@ class uiviews extends uical 'color' => $color, ); } - //_debug_array($event); + $ie_fix = ''; + if ($this->html->user_agent == 'msie') // add a transparent image to make the event "opaque" to mouse events + { + $ie_fix = $this->html->image('calendar','transparent.gif','', + $this->html->tooltip($tooltip,False,array('BorderWidth'=>0,'Padding'=>0)). + ' style="top:0px; left:0px; position:absolute; height:100%; width:100%; z-index:1"') . "\n"; + } return $indent.'
'."\n".$html.$indent."
\n"; + '%; height: '.$height.'%;"'.$popup.'>'."\n".$ie_fix.$html.$indent."\n"; } function add_nonempty($content,$label,$one_per_line=False) diff --git a/calendar/templates/default/images/transparent.gif b/calendar/templates/default/images/transparent.gif new file mode 100644 index 0000000000000000000000000000000000000000..fde86b73c457fd99b0b0e94c72dafcc69d721b95 GIT binary patch literal 814 zcmchWv2m3_421WMc{65c!HIJ+C1xBsF{TVBDujd@l+ghcvN^R7EuYTR;7i_Ubhr9; z^}ny*o*%xvUUk(Ey`7R;8p%>bRi$dxsI1C1yVR{7wbj|XQ<~O{#+vL?m)!EmmV=T~ zN-LvSp+FmHw0O+z?3_JaHC3+4j-~3Zo@!TTDQHgDOpR-@P~3Hwr|fcInngHP9Izi)>D9Hm% zUK0mQ7{(#ghyl$@u;5@Y+DKtBkq(cR}+(n6iwcfBXd zWjyKZwvXXOJ|1@Y2WuUiNl5cKuqDF7(;4;uTYTrA`@bJ