Issue 458: Drag and Drop helper does not show dragged item text when drag start from icon or left of it (tree part)
Status:  Fixed
Owner: ----
Closed:  Dec 2013
Reported by nmard...@gmail.com, Oct 19, 2013
What steps will reproduce the problem?
1. Begin drag operation from tree element icon
2. Watch at the dragged helper text (appears as empty)

If possible, please attach an example HTML file (e.g. a copy of `doc/_test-
ISSUE.html`), that reproduces the problem when copied
into the dynatree/doc/ folder or reproduce on jsFiddle:
Any of the drag & drop samples would do - http://wwwendt.de/tech/dynatree/doc/samples.html

What is the expected output? What do you see instead?
Expect to see dragged item's full text, just as happens when beginning the drag operation from item text.

What version of the dynatree and jQuery are you using?
1.2.4
On what operating system and browser?
Windows 7/Chrome (reproduces on any)

What DOCTYPE declaration are you using?
any

Please provide any additional information below.
The root cause in the code is in lines #2747-2748: 

			var $helper = $("<div class='dynatree-drag-helper'><span class='dynatree-drag-helper-img' /></div>")
				.append($(event.target).closest(".dynatree-title").clone());

when the event drag starts from the icon, the above 'closest' operation call does not return the sought after element as it is not contained in it. 
Making the following change addresses this:
			var $helper = $("<div class='dynatree-drag-helper'><span class='dynatree-drag-helper-img' /><a>" +node.data.title + "</a></div>");

Oct 24, 2013
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Labels: Milestone-Release1.2.5
Nov 19, 2013
Project Member #2 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: -Milestone-Release1.2.5 Milestone-Release1.2.6
Dec 7, 2013
Project Member #3 moo...@wwwendt.de
This issue was closed by revision r692.
Status: Fixed