Skip to content

Commit

Permalink
don't redirect on ajax failure. this helps with issue #298
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Oct 30, 2018
1 parent 84012b6 commit 9dedcc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/site.js
Expand Up @@ -140,8 +140,8 @@ var Hm_Ajax_Request = function() { return {
if (hm_encrypt_ajax_requests()) {
res = Hm_Utils.json_decode(Hm_Crypt.decrypt(res.payload));
}
if (!res || (res.state && res.state == 'not callable') || !res.router_login_state) {
window.location.href = "?page=home";
if ((res.state && res.state == 'not callable') || !res.router_login_state) {
this.fail(res);
return;
}
if (Hm_Ajax.err_condition) {
Expand Down

0 comments on commit 9dedcc7

Please sign in to comment.