From 3953dde2c698d89810661435b2602fbdb55c322e Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 2 Dec 2008 21:25:15 +0000 Subject: The rearrange module will now add an album if you drag the "new album" onto the album tree. I haven't had a chance to figure out why the form does get any styling or why a textarea is no included as a list item. --- core/controllers/albums.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/controllers') diff --git a/core/controllers/albums.php b/core/controllers/albums.php index ec5466a6..e684fa6b 100644 --- a/core/controllers/albums.php +++ b/core/controllers/albums.php @@ -46,4 +46,14 @@ class Albums_Controller extends Items_Controller { print $template; } + + /** + * @see Rest_Controller::_form_add($parameters) + */ + public function _form_add($parent_id) { + $parent = ORM::factory("item", $parent_id); + + print album::get_add_form($parent)->render(); + } + } -- cgit v1.2.3