Add progress bar to some large exports

This commit is contained in:
Raphael Michel
2020-07-23 21:27:14 +02:00
parent fc5c3caf66
commit a310c33497
8 changed files with 114 additions and 17 deletions

View File

@@ -31,6 +31,9 @@ function async_task_check_callback(data, jqXHR, status) {
}
location.href = data.redirect;
return;
} else if (!!data.percentage) {
$("#loadingmodal .progress").show();
$("#loadingmodal .progress .progress-bar").css("width", data.percentage + "%");
}
async_task_timeout = window.setTimeout(async_task_check, 250);
@@ -203,6 +206,7 @@ var waitingDialog = {
show: function (message) {
"use strict";
$("#loadingmodal").find("h3").html(message);
$("#loadingmodal .progress").hide();
$("body").addClass("loading");
},
hide: function () {