From 7d88e88e830acf4463468650e166a5d78f83b269 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 23 Nov 2018 15:12:26 +0300 Subject: set loading_message if book is downloaded from server --- read.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/read.html b/read.html index 5d9b4ee..f07e9e3 100644 --- a/read.html +++ b/read.html @@ -351,6 +351,8 @@ if (navigator.onLine) { var book_url = "backend.php?op=download&id=" + $.urlParam("id"); + $(".loading_message").html("Downloading..."); + fetch(book_url, {credentials: 'same-origin'}).then(function(resp) { if (resp.status == 200) { -- cgit v1.2.3