mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-15 11:27:24 -04:00
Implement the first part of drag functionality. Having trouble getting visual feedback of the drop position between thumbnails, so this commit provides a checkpoint for trying various options
This commit is contained in:
@@ -60,13 +60,14 @@ class Organize_Controller extends Controller {
|
||||
$v->album_icon = "gBranchEmpty";
|
||||
|
||||
$albums = $item->children(null, 0, array("type" => "album"), array("title" => "ASC"));
|
||||
if ($albums->count()) {
|
||||
$v->album_icon = empty($parents[$item->id]) ? "ui-icon-plus" : "ui-icon-minus";
|
||||
|
||||
foreach ($albums as $album) {
|
||||
foreach ($albums as $album) {
|
||||
if (access::can("view", $album)) {
|
||||
$v->children[] = $this->_tree($album, $parents);
|
||||
}
|
||||
}
|
||||
if (count($v->children)) {
|
||||
$v->album_icon = empty($parents[$item->id]) ? "ui-icon-plus" : "ui-icon-minus";
|
||||
}
|
||||
return $v;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user