mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-07 12:09:11 -04:00
Switch back to setting nodes as leaves, but fix the drop zone code to
allow dropping on leaves.
This commit is contained in:
@@ -345,6 +345,13 @@
|
||||
return returnCls;
|
||||
}
|
||||
|
||||
// Override Ext.tree.TreeDropZone.getDropPoint so that it allows dropping
|
||||
// on any node. The standard function won't let you drop on leaves, but
|
||||
// in our model we consider an album without sub-albums a leaf.
|
||||
v.dropZone.getDropPoint = function(e, n, dd) {
|
||||
return "append";
|
||||
}
|
||||
|
||||
v.dropZone.onNodeDrop = function(target, dd, e, data) {
|
||||
var nodes = data.nodes;
|
||||
source_ids = [];
|
||||
|
||||
Reference in New Issue
Block a user