From b8c68ed431e55ac8ceea1046dd7af94495b1ac90 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 26 Feb 2017 14:14:54 +0300 Subject: fix books wrongly displayed as read in offline mode --- js/offline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/offline.js b/js/offline.js index 7815b83..8846e8a 100644 --- a/js/offline.js +++ b/js/offline.js @@ -32,7 +32,7 @@ function populate_list() { if (lastread) { in_progress = lastread.page > 0; - is_read = lastread.total - lastread.page < 5; + is_read = lastread.total > 0 && lastread.total - lastread.page < 5; } var cell = "
"; -- cgit v1.2.3