1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/13740] Add better progress handling, also add log messages

PHPBB3-13740
This commit is contained in:
CHItA
2015-06-05 17:43:30 +02:00
committed by Mate Bartus
parent 0dc6029bfe
commit 1b81bf5b23
12 changed files with 393 additions and 108 deletions

View File

@@ -204,13 +204,14 @@
* @param progressLimit
*/
function incrementFiller($progressText, $progressFiller, progressLimit) {
if (currentProgress >= progressLimit || currentProgress >= 100) {
clearInterval(progressTimer);
return;
}
currentProgress++;
$progressText.text(currentProgress + '%');
$progressFiller.css('width', currentProgress + '%');
if (currentProgress >= progressLimit || currentProgress >= 100) {
clearInterval(progressTimer);
}
}
/**