summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-09 09:01:43 -0700
committerVincent Petry <pvince81@owncloud.com>2013-10-09 09:01:43 -0700
commit3a3819b30392547d6d4250830275cec64f7a08d4 (patch)
tree4f4e1daef59c0f0d7cf1f802f05d4963da273546 /apps
parent223adc3167d82d8bcd88b19aae78b1da2773e729 (diff)
parent0736bfb43a0ecc81ba1eb38c4b32fea8ed454957 (diff)
downloadnextcloud-server-3a3819b30392547d6d4250830275cec64f7a08d4.tar.gz
nextcloud-server-3a3819b30392547d6d4250830275cec64f7a08d4.zip
Merge pull request #5134 from owncloud/trashbin-homeiconbroken
Do not call changeDirectory() when no dir set on breadcrumb
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 37b66858840..9e7a2364b18 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -703,7 +703,10 @@ function checkTrashStatus() {
}
function onClickBreadcrumb(e){
- var $el = $(e.target).closest('.crumb');
- e.preventDefault();
- FileList.changeDirectory(decodeURIComponent($el.data('dir')));
+ var $el = $(e.target).closest('.crumb'),
+ $targetDir = $el.data('dir');
+ if ($targetDir !== undefined){
+ e.preventDefault();
+ FileList.changeDirectory(decodeURIComponent($targetDir));
+ }
}