From c6c3e1bbb566234b13a6ec9f0e60ffd5d0050e29 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 1 Mar 2017 15:53:31 +0100 Subject: [PATCH] Don't select subfolders in the tree when drag&drop --- www/drive/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/drive/main.js b/www/drive/main.js index 209e40eb3..c4aa73d63 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -609,6 +609,7 @@ define([ var onDrag = function (ev, path) { var paths = []; var $element = $(ev.target).closest('li'); + if ($element.find('>.element-row').length) { $element = $element.find('>.element-row'); } if ($element.hasClass('selected')) { var $selected = $iframe.find('.selected'); $selected.each(function (idx, elmt) {