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 b351825427
commit d563af4600

View File

@ -1061,6 +1061,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++;
@ -1139,7 +1141,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');
}
/**