diff options
author | Andrew Dolgov <[email protected]> | 2017-02-26 13:42:00 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-02-26 13:42:00 +0300 |
commit | 8aaf1fad0c1cfa65132f052f0f98b3452ddc4eeb (patch) | |
tree | 2b44d22cb37d126caca770eb63d6608b6efb8000 /js/read.js | |
parent | 84230a6809d7ce8bd5d0161d1f91df4a4b7b32a0 (diff) |
various offline-related fixes
Diffstat (limited to 'js/read.js')
-rw-r--r-- | js/read.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -113,9 +113,10 @@ function save_and_close() { if (navigator.onLine) { var currentPage = book.pagination.pageFromCfi(book.getCurrentLocationCfi()); var currentCfi = book.getCurrentLocationCfi(); + var totalPages = book.pagination.totalPages; localforage.setItem("epube-book." + $.urlParam("b") + ".lastread", - {cfi: currentCfi, page: currentPage}); + {cfi: currentCfi, page: currentPage, total: totalPages}); $.post("backend.php", { op: "storelastread", id: $.urlParam("id"), page: currentPage, cfi: currentCfi }, function(data) { |