]> source.dussan.org Git - nextcloud-server.git/commitdiff
prefer closest over parent
authorJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 31 Oct 2013 14:56:02 +0000 (15:56 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 31 Oct 2013 14:56:02 +0000 (15:56 +0100)
closest will search up the tree

apps/files/js/files.js

index 950dae2f92526deaa159f15511cbfd339bbebde8..0b10fa8c63ad510399e4c8114a1b8fb0a8a115a6 100644 (file)
@@ -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) {