mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
Timesheet: Change context menu category change to go over AJAX instead of POST to take advantage of push
This commit is contained in:
parent
2cf0e7732d
commit
cd20749ca0
@ -1062,6 +1062,8 @@ class timesheet_ui extends timesheet_bo
|
||||
'onExecute' => 'javaScript:app.timesheet.ajax_action',
|
||||
),
|
||||
);
|
||||
// Change category via AJAX
|
||||
$actions['cat']['onExecute'] = $actions['status']['onExecute'];
|
||||
|
||||
// Other Api\Applications
|
||||
$group++;
|
||||
@ -1140,7 +1142,7 @@ class timesheet_ui extends timesheet_bo
|
||||
}
|
||||
$app = Api\Json\Push::onlyFallback() || $all_selected ? 'timesheet' : 'msg-only-push-refresh';
|
||||
Api\Json\Response::get()->call('egw.refresh', $msg, $app, $selected[0], $all_selected || count($selected) > 1 ? null :
|
||||
$action === 'delete' ? 'delete' : 'edit', $app, null, null, $failed ? 'error' : 'success');
|
||||
$action === 'delete' ? 'delete' : 'update', $app, null, null, $failed ? 'error' : 'success');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user