From 9d91e53027e0a0c64f36a7eb5812dbe70c6dfaa7 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 25 Apr 2012 22:42:00 +0200 Subject: fix problem with filescanning --- files/js/files.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'files') 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(); -- cgit v1.2.3