diff --git a/tailbone/templates/upgrade.mako b/tailbone/templates/upgrade.mako index bb512510..a12361c5 100644 --- a/tailbone/templates/upgrade.mako +++ b/tailbone/templates/upgrade.mako @@ -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); + } } } });