Roo.extend(Roo.tree.TreeDragZone, Roo.dd.DragZone, {
ddGroup : "TreeDD",
- scroller : false,
-
+
onBeforeDrag : function(data, e){
var n = data.node;
return n && n.draggable && !n.disabled;
},
+
- onDragOut : function(e, id)
- {
- var ret = Roo.tree.TreeDragZone.superclass.constructor.prototype.onDragOut.call(this, e, id);
-
- Roo.log('ondragout');
- Roo.log(this);
-
- return ret;
- },
- onDragEnter : function(e, id)
- {
- var ret = Roo.tree.TreeDragZone.superclass.constructor.prototype.onDragEnter.call(this, e, id);
-
- if (this.scroller !== false) {
- window.clearTimeout(this.scroller);
- this.scroller =false;
-
- }
-
- Roo.log('ondrageneter');
-
-
- Roo.log(this);
-
- return ret;
- },
onInitDrag : function(e){
var data = this.dragData;
this.tree.getSelectionModel().select(data.node);
onEndDrag : function(data, e){
this.tree.fireEvent("enddrag", this.tree, data.node, e);
+
+
},
onValidDrop : function(dd, e, id){