summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-25 08:51:08 +0300
committerAndrew Dolgov <[email protected]>2017-02-25 08:51:08 +0300
commitb4fb29e00346ec78065e875ab318885810524a22 (patch)
tree40950c1cce12b39e81488d5e09a63c82bc6a4e8b /js
parentabe6ca80782474e266961e49077ee566c22a0a91 (diff)
switch to integer book ids
Diffstat (limited to 'js')
-rw-r--r--js/read.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/read.js b/js/read.js
index 5d5fffa..4afa0f5 100644
--- a/js/read.js
+++ b/js/read.js
@@ -92,9 +92,7 @@ function zoom(incr) {
function clear_lastread() {
if (confirm("Clear stored last read page?")) {
- var bookId = book.generateBookKey(book.metadata.identifier);
-
- $.post("backend.php", { op: "storelastread", page: -1, id: bookId }, function(data) {
+ $.post("backend.php", { op: "storelastread", page: -1, id: $.urlParam("id") }, function(data) {
$(".lastread_input").val(data);
});
}