Create a fake routine, check for its progress.

This commit is contained in:
James Cole
2018-04-30 06:37:29 +02:00
parent 1c2089b8a3
commit cd75224cdd
9 changed files with 207 additions and 6 deletions

View File

@@ -52,8 +52,10 @@ function reportOnJobStatus(data) {
case "ready_to_run":
startJob();
checkOnJob();
break;
case "running":
showProgressBox();
checkOnJob();
break;
default:
console.error('Cannot handle status ' + data.status);
@@ -108,6 +110,17 @@ function reportFailure(xhr, status, error) {
// show error box.
}
function showProgressBox() {
// hide fatal error box:
$('.fatal_error').hide();
// hide initial status box:
$('.status_initial').hide();
// show running box:
$('.status_running').show();
}
/**
* Function is called when the job could not be started.
*