summaryrefslogtreecommitdiff
path: root/modules/organize/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-05 22:32:33 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-05 22:32:33 -0800
commit2167168f5112fe9337c544578baa51cc5aed7652 (patch)
treea0ee28c6d28a34a4f730c559575d0f68f40f6d2c /modules/organize/controllers
parentaebcd445135648603590e2ab99f40b72ee8ed097 (diff)
Get rid of the expando caret in front of empty folders
Diffstat (limited to 'modules/organize/controllers')
-rw-r--r--modules/organize/controllers/organize.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php
index c23d6d61..2ded8a2e 100644
--- a/modules/organize/controllers/organize.php
+++ b/modules/organize/controllers/organize.php
@@ -161,9 +161,9 @@ class Organize_Controller extends Controller {
"allowDrag" => false,
"allowDrop" => access::can("edit", $child),
"editable" => false,
- "expandable" => true,
+ "expandable" => false,
"id" => $child->id,
- "leaf" => false,
+ "leaf" => $child->children_count(array(array("type", "=", "album"))) == 0,
"text" => $child->title,
"nodeType" => "async");