This commit is contained in:
James Cole
2017-12-19 19:25:50 +01:00
parent e21e339cb0
commit a69aad878e
25 changed files with 114 additions and 33 deletions

View File

@@ -163,7 +163,7 @@ function jobIsStalled(data) {
function startJob() {
// disable the button, add loading thing.
$('.start-job').prop('disabled', true).text('...');
$.post(jobStartUri).fail(reportOnSubmitError);
$.post(jobStartUri, {_token: token}).fail(reportOnSubmitError);
// check status, every 500 ms.
timeOutId = setTimeout(checkJobStatus, startInterval);