summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-11-23 15:12:26 +0300
committerAndrew Dolgov <[email protected]>2018-11-23 15:12:26 +0300
commit7d88e88e830acf4463468650e166a5d78f83b269 (patch)
tree923d7f15aee72b5353ca0a9884185359091ecdf3
parent35d9cc340c923b1cd7ec2226980191a0402ddf5a (diff)
set loading_message if book is downloaded from server
-rw-r--r--read.html2
1 files changed, 2 insertions, 0 deletions
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) {