diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-01-05 22:32:33 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-05 22:32:33 -0800 |
commit | 2167168f5112fe9337c544578baa51cc5aed7652 (patch) | |
tree | a0ee28c6d28a34a4f730c559575d0f68f40f6d2c | |
parent | aebcd445135648603590e2ab99f40b72ee8ed097 (diff) |
Get rid of the expando caret in front of empty folders
-rw-r--r-- | modules/organize/controllers/organize.php | 4 | ||||
-rw-r--r-- | modules/organize/css/organize.css | 4 |
2 files changed, 6 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"); diff --git a/modules/organize/css/organize.css b/modules/organize/css/organize.css index c14faf8c..be0e0e18 100644 --- a/modules/organize/css/organize.css +++ b/modules/organize/css/organize.css @@ -73,6 +73,10 @@ line-height: 20px; } +.g-organize .x-tree-node-leaf .x-tree-node-icon{ + background-image:url(../vendor/ext/images/default/tree/folder.gif); +} + .loading div { font-size: 1.1em; padding-left: 24px; |