From e01f57a3d98943954372110dc75e8d731fbacc10 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 26 Feb 2017 13:12:33 +0300 Subject: further offline improvements --- index.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index ead1231..0c15289 100644 --- a/index.php +++ b/index.php @@ -22,6 +22,7 @@ + The Epube @@ -29,6 +30,7 @@ + @@ -75,12 +77,13 @@ .then(function() { console.log("service worker registered"); }); - - $(window).on('offline', function() { + /*$(window).on('offline', function() { window.location.reload(); - }); + });*/ } + mark_offline_books(); + }); @@ -133,7 +136,7 @@ $is_read = false; if ($line["epub_id"]) { - $read_link = "read.html?" . http_build_query(["id" => $line["epub_id"]]); + $read_link = "read.html?" . http_build_query(["id" => $line["epub_id"], "b" => $line["id"]]); $lastread_result = $ldb->query("SELECT lastread, total_pages FROM epube_books, epube_pagination WHERE epube_pagination.bookid = epube_books.bookid AND @@ -219,8 +222,8 @@ ?> --> -
  • " class="offline" title="">Make available offline
  • +
  • " class="offline_dropitem">
  • -- cgit v1.2.3