My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 253 attachment: issue_253.patch (1.8 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Index: src/jquery.dynatree.js
===================================================================
--- src/jquery.dynatree.js (revision 539)
+++ src/jquery.dynatree.js (working copy)
@@ -2645,17 +2645,19 @@
// if(eventName !== "over"){
// this.logDebug("tree._onDragEvent(%s, %o, %o) - %o", eventName, node, otherNode, this);
// }
- var opts = this.options;
- var dnd = this.options.dnd;
- var res = null;
- var nodeTag = $(node.span);
- var hitMode;
+ var opts = this.options,
+ dnd = this.options.dnd,
+ res = null,
+ nodeTag = $(node.span),
+ hitMode;

switch (eventName) {
case "helper":
// Only event and node argument is available
+// this.logDebug("Helper: %o", $(event.target).closest("li"));
var helper = $("<div class='dynatree-drag-helper'><span class='dynatree-drag-helper-img' /></div>")
- .append($(event.target).closest('a').clone());
+ .append($(event.target).closest("li").clone());
+ $(".dynatree-expander", helper).remove();
// Attach node reference to helper object
helper.data("dtSourceNode", node);
// this.logDebug("helper.sourceNode=%o", helper.data("dtSourceNode"));
Index: src/skin/ui.dynatree.css
===================================================================
--- src/skin/ui.dynatree.css (revision 539)
+++ src/skin/ui.dynatree.css (working copy)
@@ -336,12 +336,20 @@
}
div.dynatree-drag-helper a
{
- border: 1px solid gray;
- background-color: white;
+ background-color: white;
+/* border: 1px solid gray;
padding-left: 5px;
- padding-right: 5px;
+ padding-right: 5px;*/
opacity: 0.8;
}
+div.dynatree-drag-helper li
+{
+ list-style: none outside none;
+}
+div.dynatree-drag-helper >li
+{
+ display: inline;
+}
span.dynatree-drag-helper-img
{
/*
Powered by Google Project Hosting