diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-01 15:25:00 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-01 15:25:00 +0100 |
commit | a69d3c3346b7b254e3e0ab6766f40842a4ad3878 (patch) | |
tree | 51db578eb892b87099b65c38abc11891a257020c /files | |
parent | 12681e92b06aaea79a2004a2bf078f4e7fb62a13 (diff) | |
download | nextcloud-server-a69d3c3346b7b254e3e0ab6766f40842a4ad3878.tar.gz nextcloud-server-a69d3c3346b7b254e3e0ab6766f40842a4ad3878.zip |
only show what folder we are scanning to save bandwith
Diffstat (limited to 'files')
-rw-r--r-- | files/js/files.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/files/js/files.js b/files/js/files.js index a896314faf0..0eca0959def 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -347,15 +347,13 @@ $(document).ready(function() { function scanFiles(force){ force=!!force; //cast to bool - var fileCount=0; $('#scanning-message').show(); $('#fileList').remove(); var scannerEventSource=new OC.EventSource(OC.filePath('files','ajax','scan.php'),{force:force}); scanFiles.cancel=scannerEventSource.close.bind(scannerEventSource); - scannerEventSource.listen('scanned',function(file){ - fileCount++; - $('#scan-count').text(fileCount+' files scanned'); - $('#scan-current').text(file); + scannerEventSource.listen('scanning',function(data){ + $('#scan-count').text(data.count+' files scanned'); + $('#scan-current').text(data.file+'/'); }); scannerEventSource.listen('success',function(success){ if(success){ |