Add support for adding calendar & other apps from URL in a popup

This commit is contained in:
Nathan Gray 2010-04-27 18:37:16 +00:00
parent e4bb6099eb
commit 5cbb53c00f

View File

@ -304,6 +304,20 @@ class timesheet_ui extends timesheet_bo
// a preserved title blur is only set for other (non-project) links, it stays with Save&New! // a preserved title blur is only set for other (non-project) links, it stays with Save&New!
$preserv['ts_title_blur'] = egw_link::title('infolog',$link_id); $preserv['ts_title_blur'] = egw_link::title('infolog',$link_id);
break; break;
case 'calendar':
$calendar_bo = new calendar_bo();
$event = $calendar_bo->read($link_id);
if(!$event['recur_type'])
{
$content['ts_start'] = $event['start'];
}
$content['ts_description'] = $event['description'];
$content['ts_duration'] = ($event['end'] - $event['start']) / 60;
$content['ts_quantity'] = ($event['end'] - $event['start']) / 3600;
unset($content['end_time']);
default:
$preserv['ts_title_blur'] = egw_link::title($link_app,$link_id);
break;
} }
} }
} }