diff --git a/public/controlpanel.php b/public/controlpanel.php index c30b647c21..f153a0e70a 100644 --- a/public/controlpanel.php +++ b/public/controlpanel.php @@ -156,7 +156,6 @@ function ResetProgressForSelection() { function onResetComplete(data) { if (data.substr(0, 2) !== 'OK') { - alert(data); //showStatusFailure('Error: ' + data); $('#loadingiconreset').attr('src', '').delay(750).fadeTo('slow', 0.0); return; diff --git a/public/request/user/reset-achievements.php b/public/request/user/reset-achievements.php index 997b8b66d0..0f5f7a13c7 100644 --- a/public/request/user/reset-achievements.php +++ b/public/request/user/reset-achievements.php @@ -7,18 +7,15 @@ $achID = requestInputPost('a', null, 'integer'); if (!authenticateFromCookie($user, $permissions, $userDetails)) { - redirect(back() . '?e=error'); exit; } if (!empty($achID) && resetSingleAchievement($user, $achID)) { - redirect(back() . '?reset=ok'); + echo "OK"; exit; } if (!empty($gameID) && resetAchievements($user, $gameID) > 0) { - redirect(back() . '?reset=ok'); + echo "OK"; exit; } - -redirect(back() . '?e=error');