Revert "Revert "Enable the expand/collapse of branches by clicking on the plus/minus""

This reverts commit e37526f94d.
This commit is contained in:
Tim Almdal
2009-08-05 10:26:49 -07:00
parent 65c850c393
commit 63f3efef37
5 changed files with 80 additions and 27 deletions

View File

@@ -1,11 +1,11 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<li class="gOrganizeBranch ui-icon-left" ref="<?= $album->id ?>">
<span id="gOrganizeIcon-<?= $album->id ?>" ref="<?= $album->id ?>"
class="ui-icon <?= $album_icon ?> <?= $album_icon ? "" : "gBranchEmpty" ?>">
</span>
<div id="gOrganizeBranch-<?= $album->id ?>" ref="<?= $album->id ?>"
class="<?= $selected ? "gBranchSelected" : "" ?> gBranchText">
<span id="gOrganizeIcon-<?= $album->id ?>" ref="<?= $album->id ?>"
class="ui-icon <?= $album_icon ?>">
</span>
<?= p::clean($album->title) ?>
</div>
<? if (empty($children)): ?>
@@ -13,7 +13,9 @@
<? else: ?>
<ul id="gOrganizeChildren-<?= $album->id ?>"
class="<?= $album_icon == "ui-icon-plus" ? "gBranchCollapsed" : "" ?>">
<?= $children ?>
<? foreach ($children as $child): ?>
<?= $child ?>
<? endforeach ?>
</ul>
<? endif ?>
</li>