Display the progress when downloading a file

This commit is contained in:
yflory
2017-05-22 12:30:00 +02:00
parent 5179252d3b
commit 3964f4feee
4 changed files with 17 additions and 7 deletions

View File

@@ -25,6 +25,7 @@ define([
var $label = $form.find('label');
var $dllabel = $dlform.find('label');
var $table = $iframe.find('#status');
var $progress = $iframe.find('#progress');
Cryptpad.addLoadingScreen();
@@ -276,6 +277,8 @@ define([
Title.updateTitle(title || Title.defaultTitle);
exportFile();
}, function (progress) {
var p = progress * 100 +'%';
$progress.width(p);
console.error(progress);
});
});