Fix context menu action 'Add' in grid views

This commit is contained in:
Nathan Gray 2015-12-29 00:19:45 +00:00
parent d89e847acc
commit f08cfee22c

View File

@ -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';