closes #1400, bunch of other fixes to 404, 403 in accounts

This commit is contained in:
barisusakli
2014-04-30 17:24:49 -04:00
parent 8fa3baf32d
commit c8efeb7d7c
4 changed files with 50 additions and 18 deletions

View File

@@ -198,6 +198,8 @@ var ajaxify = ajaxify || {};
return ajaxify.go('404');
} else if (data && data.status === 403) {
return ajaxify.go('403');
} else if (data && data.status === 302) {
return ajaxify.go(data.responseJSON.slice(1));
} else if (textStatus !== "abort") {
app.alertError(data.responseJSON.error);
}