diff options
Diffstat (limited to 'files/js/files.js')
-rw-r--r-- | files/js/files.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/js/files.js b/files/js/files.js index 3ce95f992d0..73a16100a69 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -370,12 +370,12 @@ $(document).ready(function() { }, "json"); }); -function scanFiles(force){ +function scanFiles(force,dir){ force=!!force; //cast to bool scanFiles.scanning=true; $('#scanning-message').show(); $('#fileList').remove(); - var scannerEventSource=new OC.EventSource(OC.filePath('files','ajax','scan.php'),{force:force}); + var scannerEventSource=new OC.EventSource(OC.filePath('files','ajax','scan.php'),{force:force,dir:dir}); scanFiles.cancel=scannerEventSource.close.bind(scannerEventSource); scannerEventSource.listen('scanning',function(data){ $('#scan-count').text(data.count+' files scanned'); |