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.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/files/js/files.js b/files/js/files.js
index 73a16100a69..e6df7e6bfad 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -371,6 +371,9 @@ $(document).ready(function() {
});
function scanFiles(force,dir){
+ if(!dir){
+ dir='';
+ }
force=!!force; //cast to bool
scanFiles.scanning=true;
$('#scanning-message').show();