summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/utils.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/www/js/utils.js b/www/js/utils.js
index 8337c12..e672570 100644
--- a/www/js/utils.js
+++ b/www/js/utils.js
@@ -151,9 +151,16 @@ function updateProgressBar($el, upload) {
Number((upload.uploadprogress.total/1024)/1024).toFixed(1) + " MB";
$el.find('.file-bytes').text(bytes_str);
$el.find('.progress .progress-bar').css("width", upload.uploadprogress.progress + "%");
+ } else if(upload.uploadprogress.progress_step < 3) {
+ $el.find('.file-bytes').text('normalisiere...');
+ $el.find('.progress .progress-bar').css("width", upload.uploadprogress.progress + "%");
} else {
$el.find('.file-bytes').text('importiere...');
- $el.find('.progress .progress-bar').css('width', '100%');
- $el.find('.progress .progress-bar').addClass('progress-bar-striped').addClass('active');
+ if (upload.uploadprogress.progress < 99) {
+ $el.find('.progress .progress-bar').css("width", upload.uploadprogress.progress + "%");
+ } else {
+ $el.find('.progress .progress-bar').css("width", "100%");
+ $el.find('.progress .progress-bar').addClass('progress-bar-striped').addClass('active');
+ }
}
}