When the session expired, automatically refresh the page with the intended desitination without the alert
This commit is contained in:
parent
070aabfc88
commit
daf240e363
6
public/js/custom.js
vendored
6
public/js/custom.js
vendored
@ -36,11 +36,11 @@ function getNode(item) {
|
|||||||
case 404:
|
case 404:
|
||||||
$('.main-content').empty().append(e.responseText);
|
$('.main-content').empty().append(e.responseText);
|
||||||
break;
|
break;
|
||||||
case 409:
|
case 409: // Not in root
|
||||||
location.replace('/#'+item);
|
location.replace('/#'+item);
|
||||||
break;
|
break;
|
||||||
case 419:
|
case 419: // Session Expired
|
||||||
alert('Session has expired, reloading the page and try again...');
|
location.replace('/#'+item);
|
||||||
location.reload();
|
location.reload();
|
||||||
break;
|
break;
|
||||||
case 500:
|
case 500:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user