summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-10-31 15:56:02 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-10-31 15:56:02 +0100
commitadb5de4a888c01863b58cd50bd21ab2d4d17cace (patch)
tree6cd9db676eb5b18cf9e3be88e8cefeaea389c0da
parentc40515c33f80b8f5bf60c16bfc0d20dfddc80866 (diff)
downloadnextcloud-server-adb5de4a888c01863b58cd50bd21ab2d4d17cace.tar.gz
nextcloud-server-adb5de4a888c01863b58cd50bd21ab2d4d17cace.zip
prefer closest over parent
closest will search up the tree
-rw-r--r--apps/files/js/files.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 950dae2f925..0b10fa8c63a 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -487,7 +487,7 @@ var folderDropOptions={
return false;
}
- var target = $(this).parent('tr').data('file');
+ var target = $(this).closest('tr').data('file');
var files = ui.helper.find('tr');
$(files).each(function(i,row) {