aboutsummaryrefslogtreecommitdiffstats
path: root/server/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-08-30 19:44:26 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-08-30 19:44:26 +0200
commit52f6b4e6a565835d54f7a736f7b90a7e1308ab7b (patch)
tree68b8c3df227442d5e6d46b836700a0fe4be36c6e /server/templates
parentmore reliable generation progress (diff)
downloadscout-subs-52f6b4e6a565835d54f7a736f7b90a7e1308ab7b.tar.gz
scout-subs-52f6b4e6a565835d54f7a736f7b90a7e1308ab7b.zip
thread safe download multiple docs
Diffstat (limited to '')
-rw-r--r--server/templates/server/doc_list.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html
index 2159130..2bdc6c5 100644
--- a/server/templates/server/doc_list.html
+++ b/server/templates/server/doc_list.html
@@ -551,10 +551,9 @@ function update() {
if (data[0] == data[1]) {
if (data[2]) {
bar.className = "indeterminate";
- var url = '{% url "progress" %}' + '?job=' + '{{task_id}}' + '&download=true';
- box.innerHTML = "Il download dovrebbe partire automaticamente. Nel caso non succedesse cliccare il seguente <a id='downloadLink' href=" + url + ">link</a>";
+ url = '{% url "progress" %}' + '?job=' + '{{task_id}}' + '&download=true';
+ box.innerHTML = "Il download dovrebbe partire automaticamente. Nel caso non succedesse cliccare il seguente <a id='downloadLink' href=" + url + ">link</a><br>Clicca lo sfondo per chiudere la finestra";
document.getElementById('downloadLink').click();
-
} else {
bar.style.width = "100%";
box.innerHTML = "Impacchettamento documenti...";