diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-06 06:33:17 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-06 06:33:17 -0700 |
| commit | 8131e6fa380d52faa7c1dc9a59c2e83a4adb9134 (patch) | |
| tree | 87f87c7da29d66c681908c90396f99df0c72648b /modules/organize/views/organize_tree.html.php | |
| parent | 26362ae7e2917a33858ebde7274ccb0f90351293 (diff) | |
Tighten up the code by loading all the albums in the tree at once, removing
the events to populate the button bar.
Diffstat (limited to 'modules/organize/views/organize_tree.html.php')
| -rw-r--r-- | modules/organize/views/organize_tree.html.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/modules/organize/views/organize_tree.html.php b/modules/organize/views/organize_tree.html.php index d64410d8..280bdc5f 100644 --- a/modules/organize/views/organize_tree.html.php +++ b/modules/organize/views/organize_tree.html.php @@ -8,15 +8,12 @@ </span> <?= p::clean($album->title) ?> </div> - <? if (empty($children)): ?> - <div id="gOrganizeChildren-<?= $album->id ?>"></div> - <? else: ?> - <ul id="gOrganizeChildren-<?= $album->id ?>" - class="<?= $album_icon == "ui-icon-plus" ? "gBranchCollapsed" : "" ?>"> - <? foreach ($children as $child): ?> - <?= $child ?> - <? endforeach ?> - </ul> - <? endif ?> + <ul id="gOrganizeChildren-<?= $album->id ?>" + class="<?= $album_icon == "ui-icon-plus" ? "gBranchCollapsed" : "" ?>"> + <li style="display:none"> </li> + <? foreach ($children as $child): ?> + <?= $child ?> + <? endforeach ?> + </ul> </li> |
