summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-05-22 22:51:24 +0300
committerAndrew Dolgov <[email protected]>2018-05-22 22:51:24 +0300
commitf72b1c271a93bb374e1fd2cdde29f324a5be054f (patch)
tree615024e9dd3bef49cac8cf36c5d31253f016183d /js
parentabddef1155902f8b2902abd8cfb5bd89c942be82 (diff)
reader: return back to favorites view on exit if called from it
Diffstat (limited to 'js')
-rw-r--r--js/read.js2
1 files changed, 1 insertions, 1 deletions
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";