PDA

View Full Version : [4.0.2] tree.ViewDropZone reorderOnly



DDarko
2 Jul 2011, 6:25 AM
Often I use the drag and drop on tree.Panel limited to changing the order of items within a single parent.

Maybe someone else from this benefit. Maybe someday it will go to the official plugin.


in extjs/src/tree/ViewDropZone.js


47a48,49
>
> reorderOnly: false,
144a147,150
>
> if (this.reorderOnly){
> if (position == 'append' || draggedRecords[0].parentNode != targetNode.parentNode) return false;
> }