Fix "progress" behavior for upgrade page
per recent changes to progress page, whoops
This commit is contained in:
parent
fdc687ed45
commit
3199b4ee6c
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue