Progress bar instead of acks_late for event cancellation

This commit is contained in:
Raphael Michel
2020-07-23 21:54:03 +02:00
parent d58c8559fc
commit 265da6c746
2 changed files with 34 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ function async_task_check_callback(data, jqXHR, status) {
}
location.href = data.redirect;
return;
} else if (!!data.percentage) {
} else if (typeof data.percentage === "number") {
$("#loadingmodal .progress").show();
$("#loadingmodal .progress .progress-bar").css("width", data.percentage + "%");
}