Don't select subfolders in the tree when drag&drop

pull/1/head
yflory 8 years ago
parent a26b9d3240
commit c6c3e1bbb5

@ -609,6 +609,7 @@ define([
var onDrag = function (ev, path) { var onDrag = function (ev, path) {
var paths = []; var paths = [];
var $element = $(ev.target).closest('li'); var $element = $(ev.target).closest('li');
if ($element.find('>.element-row').length) { $element = $element.find('>.element-row'); }
if ($element.hasClass('selected')) { if ($element.hasClass('selected')) {
var $selected = $iframe.find('.selected'); var $selected = $iframe.find('.selected');
$selected.each(function (idx, elmt) { $selected.each(function (idx, elmt) {

Loading…
Cancel
Save