[BUGFIX] Re-renable drag&drop in Folder Tree 20/49820/3
authorBenni Mack <benni@typo3.org>
Sat, 3 Sep 2016 09:17:45 +0000 (11:17 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 3 Sep 2016 09:26:56 +0000 (11:26 +0200)
The functionality to enable drag&drop in the
folder tree was broken due to the rebuilding
of the tree to ul/li syntax in 7.4/7.5.

The bugfix sets the correct JS selector to be used.

Resolves: #77825
Resolves: #71375
Releases: master, 7.6
Change-Id: I4a315c171dfdb2705c3d69f87ebca55f293e3fcb
Reviewed-on: https://review.typo3.org/49820
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/LegacyTree.js

index 7965708..e976350 100644 (file)
@@ -154,7 +154,7 @@ define(['jquery'], function($) {
                                return;
                        }
 
-                       $('.tree').on('mousedown', '.dragTitle, .dragIcon', function(evt) {
+                       $('.list-tree-root').on('mousedown', '.dragTitle, .dragIcon', function(evt) {
                                DragDrop.dragElement(evt, $(this));
                        }).on('mouseup', '.dragTitle, .dragIcon', function(evt) {
                                DragDrop.dropElement(evt, $(this));