if api fails with 404 ajaxify to 404, added type check to updateProfile

This commit is contained in:
Baris Usakli
2013-10-04 13:39:44 -04:00
parent f5619a9b29
commit 52f2e193d6
2 changed files with 5 additions and 1 deletions

View File

@@ -156,6 +156,10 @@
template_data = data;
parse_template();
}).fail(function (data) {
if(data && data.status == 404) {
ajaxify.go('404');
return;
}
app.alertError("Can't load template data!");
});