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:
Tim Almdal
2009-08-12 21:55:25 -07:00
parent 6281995385
commit 3823f65dfb
7 changed files with 116 additions and 13 deletions
+5 -4
View File
@@ -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;
}
}