mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
if api fails with 404 ajaxify to 404, added type check to updateProfile
This commit is contained in:
@@ -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!");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user