From ff872c4a89ca973cd9c7c83dc57c345cc3ee07e0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Oct 2018 14:24:36 +0300 Subject: reader: if 401 is received on last page operations, redirect to index/login --- js/read.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js') diff --git a/js/read.js b/js/read.js index a5698ff..d4c2f36 100644 --- a/js/read.js +++ b/js/read.js @@ -58,6 +58,11 @@ function open_lastread() { } } + }) + .fail(function(e) { + if (e && e.status == 401) { + window.location = "index.php"; + } }); } -- cgit v1.2.3