Skip to content

Commit

Permalink
add another server error vs offline check
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Nov 21, 2018
1 parent 4db11af commit d34719c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/core/site.js
Expand Up @@ -142,7 +142,7 @@ var Hm_Ajax_Request = function() { return {
res = Hm_Utils.json_decode(Hm_Crypt.decrypt(res.payload));
}
if ((res.state && res.state == 'not callable') || !res.router_login_state) {
this.fail(res);
this.fail(res, true);
return;
}
if (Hm_Ajax.err_condition) {
Expand Down Expand Up @@ -175,8 +175,8 @@ var Hm_Ajax_Request = function() { return {
return false;
},

fail: function(xhr) {
if (xhr.status && xhr.status == 500) {
fail: function(xhr, not_callable) {
if (not_callable || (xhr.status && xhr.status == 500)) {
Hm_Notices.show(['ERRServer Error']);
}
else {
Expand Down

0 comments on commit d34719c

Please sign in to comment.