diff options
author | Andrew Dolgov <[email protected]> | 2018-10-16 14:24:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-10-16 14:24:36 +0300 |
commit | ff872c4a89ca973cd9c7c83dc57c345cc3ee07e0 (patch) | |
tree | ee6fb2674d73bbf2dcd86371e176907a575b5a28 /js/read.js | |
parent | 8aac1bb37b012b33391ff5df4d8f9a09b2ef7a11 (diff) |
reader: if 401 is received on last page operations, redirect to index/login
Diffstat (limited to 'js/read.js')
-rw-r--r-- | js/read.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -58,6 +58,11 @@ function open_lastread() { } } + }) + .fail(function(e) { + if (e && e.status == 401) { + window.location = "index.php"; + } }); } |