From 03a1a20316300734fd1b7b3f8cf1f83bf92bbb92 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Mon, 28 Jan 2013 09:46:52 +0100 Subject: [PATCH 1/4] fixing href for folders --- apps/files/templates/part.list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index f3f06d61d66..ffa029360dc 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -28,7 +28,7 @@ > - + From 47ce3c2160656086a4c515798abd9e37edc7f2c0 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Mon, 28 Jan 2013 09:47:21 +0100 Subject: [PATCH 2/4] include keyboardshortcuts.js --- apps/files_sharing/public.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index acd5353faff..dbb5b6f9036 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -224,6 +224,7 @@ if ($linkItem) { OCP\Util::addStyle('files', 'files'); OCP\Util::addScript('files', 'files'); OCP\Util::addScript('files', 'filelist'); + OCP\Util::addscript('files', 'keyboardshortcuts'); $files = array(); $rootLength = strlen($basePath) + 1; foreach (OC_Files::getDirectoryContent($path) as $i) { From 11e88f49391a4a38145670f731d20a1fa66040d4 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Mon, 28 Jan 2013 09:48:03 +0100 Subject: [PATCH 3/4] call ajax scan only if a user is logged in - otherwise we'll get a 500 --- apps/files/js/files.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 6486468eafd..64866aea394 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -667,11 +667,13 @@ $(document).ready(function() { }); //check if we need to scan the filesystem - $.get(OC.filePath('files','ajax','scan.php'),{checkonly:'true'}, function(response) { - if(response.data.done){ - scanFiles(); - } - }, "json"); + if (OC.currentUser) { + $.get(OC.filePath('files','ajax','scan.php'),{checkonly:'true'}, function(response) { + if(response.data.done){ + scanFiles(); + } + }, "json"); + } var lastWidth = 0; var breadcrumbs = []; From c1072d0c09428525929a5e6154738245a23e5225 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Thu, 31 Jan 2013 23:26:40 +0100 Subject: [PATCH 4/4] call ajax scan only if a user is logged in - otherwise we'll get a 500 --- apps/files/js/files.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 3d09d6aa2b6..8aec701e53f 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -776,6 +776,10 @@ $(document).ready(function() { }); function scanFiles(force, dir){ + if (!OC.currentUser) { + return; + } + if(!dir){ dir = ''; }