diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2011-01-06 11:46:15 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-06 11:46:15 -0800 |
| commit | fc6907dcfe35f2341528620ccedf2db02a30d065 (patch) | |
| tree | 7cda1879afde5ac942854bc3c62e4db9f35dcf76 /modules/organize/controllers/organize.php | |
| parent | 9682b7ea6e2486c2e5dc43799ca215c51dda0baf (diff) | |
Switch back to setting nodes as leaves, but fix the drop zone code to
allow dropping on leaves.
Diffstat (limited to 'modules/organize/controllers/organize.php')
| -rw-r--r-- | modules/organize/controllers/organize.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php index cfd385fe..82f74c9e 100644 --- a/modules/organize/controllers/organize.php +++ b/modules/organize/controllers/organize.php @@ -169,6 +169,7 @@ class Organize_Controller extends Controller { "editable" => false, "expandable" => false, "id" => $child->id, + "leaf" => $child->children_count(array(array("type", "=", "album"))) == 0, "text" => $child->title, "nodeType" => "async"); @@ -177,11 +178,6 @@ class Organize_Controller extends Controller { $node["children"] = $this->_get_tree($child, $selected); $node["expanded"] = true; } - - if ($child->children_count(array(array("type", "=", "album"))) == 0) { - $node["children"] = array(); - $node["expanded"] = true; - } $tree[] = $node; } return $tree; |
