projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e166c2
)
Roo/tree/TreeDropZone.js
author
Alan Knowles
<alan@roojs.com>
Tue, 10 Jul 2012 07:13:41 +0000
(15:13 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 10 Jul 2012 07:13:41 +0000
(15:13 +0800)
Roo/tree/TreeDropZone.js
patch
|
blob
|
history
diff --git
a/Roo/tree/TreeDropZone.js
b/Roo/tree/TreeDropZone.js
index
85e6d98
..
9d25829
100644
(file)
--- a/
Roo/tree/TreeDropZone.js
+++ b/
Roo/tree/TreeDropZone.js
@@
-74,7
+74,8
@@
Roo.extend(Roo.tree.TreeDropZone, Roo.dd.DropZone, {
return overEvent.cancel === false && result !== false;
},
return overEvent.cancel === false && result !== false;
},
- getDropPoint : function(e, n, dd){
+ getDropPoint : function(e, n, dd)
+ {
var tn = n.node;
if(tn.isRoot){
return tn.allowChildren !== false ? "append" : false; // always append for root
var tn = n.node;
if(tn.isRoot){
return tn.allowChildren !== false ? "append" : false; // always append for root
@@
-103,11
+104,13
@@
Roo.extend(Roo.tree.TreeDropZone, Roo.dd.DropZone, {
}
},
}
},
- onNodeEnter : function(n, dd, e, data){
+ onNodeEnter : function(n, dd, e, data)
+ {
this.cancelExpand();
},
this.cancelExpand();
},
- onNodeOver : function(n, dd, e, data){
+ onNodeOver : function(n, dd, e, data)
+ {
var pt = this.getDropPoint(e, n, dd);
var node = n.node;
var pt = this.getDropPoint(e, n, dd);
var node = n.node;
@@
-144,6
+147,7
@@
Roo.extend(Roo.tree.TreeDropZone, Roo.dd.DropZone, {
},
onNodeOut : function(n, dd, e, data){
},
onNodeOut : function(n, dd, e, data){
+ Roo.log('node out');
this.cancelExpand();
this.removeDropIndicators(n);
},
this.cancelExpand();
this.removeDropIndicators(n);
},