diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index 07fc03fd1e..b33f6ec93c 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -2654,7 +2654,8 @@ class calendar_uiviews extends calendar_ui $action['enabled'] = 'javaScript:app.calendar.is_event'; } } - + $actions['add']['open'] = '{"app":"calendar","type":"add"}'; + $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';