Calendar - Fix context menu copy & print actions

This commit is contained in:
nathangray 2019-01-17 09:21:19 -07:00
parent 8f03a02308
commit 0c47c824aa

View File

@ -907,9 +907,9 @@ class calendar_uiviews extends calendar_ui
}
$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']['open'] = '{"app": "calendar", "type": "edit", "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']['open'] = '{"app": "calendar", "type": "edit", "extra": "cal_id=$id&print=1"}';
$actions['print']['onExecute'] = 'javaScript:app.calendar.action_open';
foreach($actions['status']['children'] as $id => &$status)