Commit 072aad48 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Reset script timer on each progress bar update.


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent ed950b40
......@@ -64,6 +64,7 @@ function unzip_iframe_progress_handler($artefacts) {
global $unzip;
$percent = $artefacts / $unzip['artefacts'] * 100;
$status = get_string('unzipprogress', 'artefact.file', $artefacts . '/' . $unzip['artefacts']);
set_time_limit(10);
// "Erase" the current output with a new background div
echo '<div style="width: 100%; background-color: #808080;" class="progress-bar"></div>';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment