fix invalid javascript variable names for draggable/droppable IDs when owner/calendar is a group

This commit is contained in:
Klaus Leithoff 2010-06-14 08:11:22 +00:00
parent 53ebb5dc19
commit 01afc4aff5

View File

@ -1058,7 +1058,7 @@ function open_edit(series)
if ($owner) $linkData['owner'] = $owner;
$droppableDateTime = $linkData['date'] . "T" . $linkData['hour'] . $linkData['minute'];
$droppableID='drop_'.$droppableDateTime.'_O'.$owner;
$droppableID='drop_'.$droppableDateTime.'_O'.($owner<0?str_replace('-','group',$owner):$owner);
$html .= $indent."\t".'<div id="' . $droppableID . '" style="height:'. $this->rowHeight .'%; top: '. $i*$this->rowHeight .
'%;" class="calAddEvent"';
@ -1394,7 +1394,7 @@ function open_edit(series)
);
}
$draggableID = 'drag_'.$event['id'].'_O'.$event['owner'].'_C'.$owner;
$draggableID = 'drag_'.$event['id'].'_O'.$event['owner'].'_C'.($owner<0?str_replace('-','group',$owner):$owner);
$ttip_options = array(
'BorderWidth' => 0, // as we use our round borders