Merge pull request #5134 from owncloud/trashbin-homeiconbroken
Do not call changeDirectory() when no dir set on breadcrumb
This commit is contained in:
commit
3a3819b303
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue