diff --git a/calendar/inc/class.calendar_uilist.inc.php b/calendar/inc/class.calendar_uilist.inc.php index a9f591f5ea..56dc49d8e5 100644 --- a/calendar/inc/class.calendar_uilist.inc.php +++ b/calendar/inc/class.calendar_uilist.inc.php @@ -890,6 +890,14 @@ class calendar_uilist extends calendar_ui 'popup' => Link::get_registry('calendar', 'view_popup'), 'allowOnMultiple' => false, ), + 'print' => array( + 'caption' => 'Print', + 'group' => $group, + 'disableClass' => 'rowNoView', + 'url' => 'menuaction=calendar.calendar_uiforms.edit&cal_id=$id&print=1', + 'popup' => Link::get_registry('calendar', 'view_popup'), + 'allowOnMultiple' => false, + ), 'select_all' => array( 'caption' => 'Whole query', 'checkbox' => true, diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index fe0a83db15..8b976561be 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -914,6 +914,8 @@ class calendar_uiviews extends calendar_ui $actions['add']['onExecute'] = 'javaScript:app.calendar.action_open'; $actions['copy']['open'] = '{"app": "calendar", "type": "add", "extra": "cal_id=$id&action=copy"}'; $actions['copy']['onExecute'] = 'javaScript:app.calendar.action_open'; + $actions['print']['open'] = '{"app": "calendar", "type": "add", "extra": "cal_id=$id&print=1"}'; + $actions['print']['onExecute'] = 'javaScript:app.calendar.action_open'; foreach($actions['status']['children'] as $id => &$status) {