mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 06:01:23 -04:00
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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user