Fix "progress" behavior for upgrade page

per recent changes to progress page, whoops
This commit is contained in:
Lance Edgar 2019-09-26 21:23:22 -05:00
parent fdc687ed45
commit 3199b4ee6c

View file

@ -25,7 +25,7 @@
$('#total').html('('+data.maximum_display+' total)');
$('#cancel button').show();
if (data.complete) {
clearInterval(updater);
stillInProgress = false;
$('#cancel button').hide();
$('#total').html('done!');
$('#complete').css('width', '100%');
@ -45,6 +45,13 @@
$('#remaining').css('width', 'auto');
}
}
if (stillInProgress) {
// fetch progress data again, in one second from now
setTimeout(function() {
update_progress();
}, 1000);
}
}
}
});