}
if (!ix) {
// first..
- this.appendNode(pn.childNodes[0], cfg, 'before');
+ this.appendNode(pn.childNodes[0], cfg, 'above');
return true;
}
- this.appendNode(pn.childNodes[ix-1], cfg, 'after');
+
+ this.appendNode(pn.childNodes[ix-1], cfg, 'below');
return true;
}
// can append has to use palete...
// this code should be in nodedragover.
-
- Roo.log("move checks need moving");
- return false;
+ if (e.dropNode) {
+ var cfg = this.toJS(e.dropNode);
+ this.appendNode(e.target, cfg, e.point);
+ }
+ Roo.log('no e.dropNode?');
+ return false; // do not allow movement..
if (_this.canAppend(np, e.dropNode.elConfig)) {
if (e.rawEvent.ctrlKey) {
// done all the checks...
return;
- }
+ }
+
+
+ // have a drop node - hence comming from the same object..
+ var drop_xtype = this.nodeXtype(e.dropNode);
+ // currently we can not determine validity..
+ e.cancel = false;
+ return ;
+
+
},
save : function()