mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
Use same action for timsheet in list view as other views
This commit is contained in:
parent
56952c1439
commit
cfc6993ddd
@ -959,11 +959,11 @@ class calendar_uilist extends calendar_ui
|
||||
$actions['timesheet'] = array( // interactive add for a single event
|
||||
'icon' => 'timesheet/navbar',
|
||||
'caption' => 'Timesheet',
|
||||
'url' => 'menuaction=timesheet.timesheet_ui.edit&link_app[]=$app&link_id[]=$id',
|
||||
'group' => $group,
|
||||
'allowOnMultiple' => false,
|
||||
'hideOnDisabled' => true, // show only one timesheet action in context menu
|
||||
'onExecute' => 'javaScript:app.calendar.cal_fix_app_id',
|
||||
'onExecute' => 'javaScript:app.calendar.action_open',
|
||||
'open' => '{"app": "timesheet", "type": "add", "extra": "link_app[]=$app&link_id[]=$app_id"}',
|
||||
'popup' => Link::get_registry('timesheet', 'add_popup'),
|
||||
);
|
||||
$actions['timesheet-add'] = array( // automatic add for multiple events
|
||||
|
@ -931,11 +931,6 @@ class calendar_uiviews extends calendar_ui
|
||||
$actions['infolog_app']['open'] = '{"app": "infolog", "type": "add", "extra": "type=task&action=$app&action_id=$id"}';
|
||||
$actions['infolog_app']['onExecute'] = 'javaScript:app.calendar.action_open';
|
||||
}
|
||||
if ($actions['timesheet'])
|
||||
{
|
||||
$actions['timesheet']['open'] = '{"app": "timesheet", "type": "add", "extra": "link_app[]=$app&link_id[]=$app_id"}';
|
||||
$actions['timesheet']['onExecute'] = 'javaScript:app.calendar.action_open';
|
||||
}
|
||||
if ($actions['documents'])
|
||||
{
|
||||
// TODO: See if we can get this working sensibly
|
||||
|
Loading…
Reference in New Issue
Block a user