mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-21 11:59:13 -04:00
1) If images are dragged from the content pane and dropped on a branch in the tree that the user only has view priviledges, then the drop is cancelled and the images are reverted. 2) The user cannot click on a branch, to which they only have view priviledges, the content pane does not change to the new album
18 lines
785 B
PHP
18 lines
785 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<li class="gOrganizeBranch ui-icon-left <?= $can_edit ? "" : "gViewOnly" ?>" ref="<?= $album->id ?>">
|
|
<div id="gOrganizeBranch-<?= $album->id ?>" ref="<?= $album->id ?>"
|
|
class="<?= $selected ? "gBranchSelected" : "" ?>">
|
|
<span id="gOrganizeIcon-<?= $album->id ?>" ref="<?= $album->id ?>"
|
|
class="ui-icon <?= $album_icon ?>">
|
|
</span>
|
|
<span class="gBranchText" ref="<?= $album->id ?>"><?= p::clean($album->title) ?></span>
|
|
</div>
|
|
<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>
|