diff options
author | Andrew Dolgov <[email protected]> | 2018-11-23 15:12:26 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-11-23 15:12:26 +0300 |
commit | 7d88e88e830acf4463468650e166a5d78f83b269 (patch) | |
tree | 923d7f15aee72b5353ca0a9884185359091ecdf3 | |
parent | 35d9cc340c923b1cd7ec2226980191a0402ddf5a (diff) |
set loading_message if book is downloaded from server
-rw-r--r-- | read.html | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |