Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
072aad48
Commit
072aad48
authored
Oct 05, 2009
by
Richard Mansfield
Browse files
Reset script timer on each progress bar update.
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
ed950b40
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/extract-progress.php
View file @
072aad48
...
...
@@ -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>'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment