From adb5de4a888c01863b58cd50bd21ab2d4d17cace Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= <jfd@butonic.de>
Date: Thu, 31 Oct 2013 15:56:02 +0100
Subject: [PATCH] prefer closest over parent

closest will search up the tree
---
 apps/files/js/files.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {
-- 
GitLab