diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-02 21:25:15 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-02 21:25:15 +0000 |
commit | 3953dde2c698d89810661435b2602fbdb55c322e (patch) | |
tree | 37da3672e8d84d26b90a913a4c5ef0c7a3053829 /core/controllers | |
parent | ea11562e3270764a1083b0b7e236be5331626504 (diff) |
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.
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/albums.php | 10 |
1 files changed, 10 insertions, 0 deletions
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(); + } + } |