My favorites
▼
|
Sign in
dynatree
Dynatree is a JavaScript dynamic tree view plugin for jQuery with support for persistence, keyboard, checkboxes, drag'n'drop, and lazy loading.
Project Home
Downloads
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
234
attachment: jquery.dynatree.js.patch
(827 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- trunk/src/jquery.dynatree.js
+++ trunk/src/jquery.dynatree.js
@@ -3154,9 +3154,17 @@
connectToDynatree: true,
// Let source tree create the helper element
helper: function(event) {
- var sourceNode = getDtNodeFromElement(event.target);
- return sourceNode.tree._onDragEvent("helper", sourceNode, null, event, null, null);
+ var sourceNode = getDtNodeFromElement(event.target);
+ if(!sourceNode)
+ return "<div></div>";
+ return sourceNode.tree._onDragEvent("helper", sourceNode, null, event, null, null);
},
+ // prevent drag start if cant get sourceNode
+ start: function(event, ui) {
+ var sourceNode = getDtNodeFromElement(event.srcElement);
+ if(!sourceNode)
+ return false;
+ },
_last: null
});
}
Powered by
Google Project Hosting