summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php2
-rw-r--r--js/read.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 281d1e9..12a0a2b 100644
--- a/index.php
+++ b/index.php
@@ -231,7 +231,7 @@
$is_read = false;
if ($line["epub_id"]) {
- $read_link = "read.html?" . http_build_query(["id" => $line["epub_id"], "b" => $line["id"]]);
+ $read_link = "read.html?" . http_build_query(["id" => $line["epub_id"], "rt" => $mode, "b" => $line["id"]]);
$lastread_sth = $ldb->prepare("SELECT lastread, total_pages FROM epube_books, epube_pagination
WHERE epube_pagination.bookid = epube_books.bookid AND
diff --git a/js/read.js b/js/read.js
index a2ce59d..39d7929 100644
--- a/js/read.js
+++ b/js/read.js
@@ -247,7 +247,7 @@ function save_and_close() {
if (navigator.onLine) {
$.post("backend.php", { op: "storelastread", id: $.urlParam("id"), page: currentPage,
cfi: currentCfi }, function(data) {
- window.location = "index.php";
+ window.location = $.urlParam("rt") ? "index.php?mode=" + $.urlParam("rt") : "index.php";
});
} else {
window.location = "index.php";