summaryrefslogtreecommitdiffstats
path: root/files/js/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'files/js/files.js')
-rw-r--r--files/js/files.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/files/js/files.js b/files/js/files.js
index 666e0c7602f..5f61bdd2ac3 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -223,7 +223,19 @@ $(document).ready(function() {
// TODO: cancel upload & display error notification
},
progress: function(e, data) {
- // TODO: show nice progress bar
+ // TODO: show nice progress bar in file row
+ },
+ progressall: function(e, data) {
+ var progress = (data.loaded/data.total)*100;
+ $('#uploadprogressbar').progressbar('value',progress);
+ },
+ start: function(e, data) {
+ $('#uploadprogressbar').progressbar({value:0});
+ $('#uploadprogressbar').fadeIn();
+ },
+ stop: function(e, data) {
+ $('#uploadprogressbar').progressbar('value',100);
+ $('#uploadprogressbar').fadeOut();
}
})
});