Browse files

Get rid of the expando caret in front of empty folders

  • Loading branch information...
1 parent aebcd44 commit 2167168f5112fe9337c544578baa51cc5aed7652 @bharat bharat committed Jan 5, 2011
Showing with 6 additions and 2 deletions.
  1. +2 −2 modules/organize/controllers/organize.php
  2. +4 −0 modules/organize/css/organize.css
View
4 modules/organize/controllers/organize.php
@@ -161,9 +161,9 @@ private function _get_tree($item, $selected) {
"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");
View
4 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;

0 comments on commit 2167168

Please sign in to comment.