summaryrefslogtreecommitdiff
path: root/js/read.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/read.js')
-rw-r--r--js/read.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/read.js b/js/read.js
index 5739799..a5698ff 100644
--- a/js/read.js
+++ b/js/read.js
@@ -233,6 +233,9 @@ function save_and_close() {
$.post("backend.php", { op: "storelastread", id: $.urlParam("id"), page: currentPage,
cfi: currentCfi }, function(data) {
window.location = $.urlParam("rt") ? "index.php?mode=" + $.urlParam("rt") : "index.php";
+ })
+ .fail(function() {
+ window.location = "index.php";
});
} else {
window.location = "index.php";