diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-11-08 19:03:32 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-11-08 19:03:32 +0100 |
commit | 584272962a0971d1025c1577f578985d0de7ec83 (patch) | |
tree | 8c7b653af95ce6f8dd55c63927504a5fc147a17e /apps/files/js/filelist.js | |
parent | b001060556e93ba4c1e1f7aff48390a7612e0b56 (diff) | |
download | nextcloud-server-584272962a0971d1025c1577f578985d0de7ec83.tar.gz nextcloud-server-584272962a0971d1025c1577f578985d0de7ec83.zip |
Improve drag & drop and fix some background issue if d&d on narrow windows
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r-- | apps/files/js/filelist.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 6c71260f176..23a2fb8bb4d 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -842,7 +842,6 @@ if ($targetDir !== undefined && e.which === 1) { e.preventDefault(); - console.log('Triggered dir change'); this.changeDirectory($targetDir, true, true); this.updateSearch(); } @@ -864,8 +863,8 @@ _onDropOnBreadCrumb: function( event, ui ) { var self = this; var $target = $(event.target); - if (!$target.is('.crumb')) { - $target = $target.closest('.crumb'); + if (!$target.is('.crumb, .crumblist')) { + $target = $target.closest('.crumb, .crumblist'); } var targetPath = $(event.target).data('dir'); var dir = this.getCurrentDirectory(); |