Tighten up the code by loading all the albums in the tree at once, removing

the events to populate the button bar.
This commit is contained in:
Tim Almdal
2009-08-06 06:33:17 -07:00
parent 26362ae7e2
commit 8131e6fa38
6 changed files with 36 additions and 205 deletions
+7 -10
View File
@@ -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">&nbsp;</li>
<? foreach ($children as $child): ?>
<?= $child ?>
<? endforeach ?>
</ul>
</li>