diff options
author | Simon Birnbach <simon@simon-birnbach.de> | 2012-03-17 22:20:39 +0100 |
---|---|---|
committer | Simon Birnbach <simon@simon-birnbach.de> | 2012-03-17 22:20:39 +0100 |
commit | b1a33110fc44d2cf20ab6de6aa68031054ec0761 (patch) | |
tree | 0ba975fc2ea67c83ffe8eb64d48f2d96d4677105 /files/js/files.js | |
parent | 38072e1900b2f3b5d0d9d0d7bd78658026a8ab23 (diff) | |
download | nextcloud-server-b1a33110fc44d2cf20ab6de6aa68031054ec0761.tar.gz nextcloud-server-b1a33110fc44d2cf20ab6de6aa68031054ec0761.zip |
Added global progressbar for all uploads
Diffstat (limited to 'files/js/files.js')
-rw-r--r-- | files/js/files.js | 14 |
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(); } }) }); |