Timesheet: Change context menu category change to go over AJAX instead of POST to take advantage of push

This commit is contained in:
nathangray 2020-08-06 09:15:52 -06:00
parent 2cf0e7732d
commit cd20749ca0

View File

@ -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');
}
/**