Commit 93395531 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Update Status message for save/delete.

parent f1f5d1d9
...@@ -87,7 +87,7 @@ try { ...@@ -87,7 +87,7 @@ try {
switch ($modeAnswer) { switch ($modeAnswer) {
case MODE_JSON: case MODE_JSON:
if ($flagSuccess) { if ($flagSuccess) {
$answer[API_MESSAGE] = 'Delete'; $answer[API_MESSAGE] = 'Deleted';
$answer[API_REDIRECT] = API_ANSWER_REDIRECT_CLIENT; $answer[API_REDIRECT] = API_ANSWER_REDIRECT_CLIENT;
$answer[API_STATUS] = API_ANSWER_STATUS_SUCCESS; $answer[API_STATUS] = API_ANSWER_STATUS_SUCCESS;
} else { } else {
......
...@@ -63,7 +63,7 @@ try { ...@@ -63,7 +63,7 @@ try {
$answer[API_REDIRECT_URL] = $arr[API_REDIRECT_URL]; $answer[API_REDIRECT_URL] = $arr[API_REDIRECT_URL];
$answer[API_STATUS] = API_ANSWER_STATUS_SUCCESS; $answer[API_STATUS] = API_ANSWER_STATUS_SUCCESS;
$answer[API_MESSAGE] = 'Save'; $answer[API_MESSAGE] = 'Saved';
if (isset($data[API_ELEMENT_UPDATE])) { if (isset($data[API_ELEMENT_UPDATE])) {
$answer[API_ELEMENT_UPDATE] = $data[API_ELEMENT_UPDATE]; $answer[API_ELEMENT_UPDATE] = $data[API_ELEMENT_UPDATE];
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment