Roo.extend(Roo.tree.TreeDragZone, Roo.dd.DragZone, {
ddGroup : "TreeDD",
- scroller : false, // 't' or 'b'
-
+
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);
-
- // if it's gone off top and bottom, start the scroller
-
- this.scrollDir = 't';
- var _t = this;
- this.scroller = window.setInterval(function() {
- _this.scrollAct
- }, 500);
- Roo.log('ondragout');
- Roo.log(this.el.dom);
-
- return ret;
- },
- onDragEnter : function(e, id)
- {
- var ret = Roo.tree.TreeDragZone.superclass.constructor.prototype.onDragEnter.call(this, e, id);
-
- if (this.scroller !== false) {
- window.clearInterval(this.scroller);
- this.scroller =false;
-
- }
-
- Roo.log('ondrageneter');
-
-
- Roo.log(this);
-
- return ret;
- },
-
- scrollAct: function()
- {
- if (this.scrollDir === false) {
- return;
- }
- this.el.scroll(this.scrollDir, 5, true);
-
-
- }
+
onInitDrag : function(e){
var data = this.dragData;
onEndDrag : function(data, e){
this.tree.fireEvent("enddrag", this.tree, data.node, e);
+
+
},
onValidDrop : function(dd, e, id){