diff options
Diffstat (limited to 'modules/organize/views')
| -rw-r--r-- | modules/organize/views/organize_tree.html.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/organize/views/organize_tree.html.php b/modules/organize/views/organize_tree.html.php index 4677234c..a99d2337 100644 --- a/modules/organize/views/organize_tree.html.php +++ b/modules/organize/views/organize_tree.html.php @@ -3,11 +3,17 @@ ref="<?= $album->id ?>"> <span class="ui-icon ui-icon-minus"> </span> - <span class="gAlbumText" ref="<?= $album->id ?>"> + <span class="gAlbumText + <?= $album->id == $selected->id ? "selected" : "" ?> + " + ref="<?= $album->id ?>"> <?= p::clean($album->title) ?> </span> <ul> <? foreach ($album->children(null, 0, array("type" => "album")) as $child): ?> + <? if ($child->is_descendant($selected)): ?> + <?= View::factory("organize_tree.html", array("selected" => $selected, "album" => $child)); ?> + <? else: ?> <li class="gOrganizeAlbum ui-icon-left <?= access::can("edit", $child) ? "" : "gViewOnly" ?>" ref="<?= $child->id ?>"> <span class="ui-icon ui-icon-plus"> @@ -16,6 +22,7 @@ <?= p::clean($child->title) ?> </span> </li> + <? endif ?> <? endforeach ?> </ul> </li> |
