Commit Graph
17 Commits
Author SHA1 Message Date
Tim Almdal 820cbdf1c3 Refactor the creation and removal of the album covers into
make_album_cover and remove_album_cover methods in Item_Model.
Usage: $photo->make_album_cover()  $album->remove_album_cover()
2009-04-29 15:57:29 +00:00
Tim Almdal 0d49773559 Reset the parent thumbnail in Item_Model::delete instead of where the
delete was happening.  This will insure that it is consistently done
for all deletes and we don't have to remember to replicate the code.
2009-04-29 00:40:59 +00:00
Tim Almdal 9176dadfd6 Move the module::event("before_item_delete") into the
Item_Model::delete method.  This will insure that it will get called
for all events.  Currently it is not being called for children of an
album when the parent album is deleted.
2009-04-29 00:29:53 +00:00
Bharat Mediratta 63edb37076 Fix up the quick-edit code on the photos page. Everything but "move"
is implemented.  Can't do move easily because it's tricky to handle
the post-move redirect.
2009-04-06 08:10:42 +00:00
Tim Almdal b05b89798a Continuation of r20518. Remove all the cases were the csrf values in
views were being manually set.  Also removed it from the Admin_View.
2009-04-02 21:41:10 +00:00
Bharat Mediratta 921f3a2eee Put csrf token into Admin_View and Theme_View by default, then use it
directly wherever possible instead of access::csrf_token().
2009-03-27 03:43:21 +00:00
Bharat Mediratta 9d8d115387 Show the album edit form for albums, not the photo edit form 2009-03-10 03:28:13 +00:00
Bharat Mediratta 5757fdbda8 If we're deleting an album cover, null it out in the parent. 2009-02-15 00:58:14 +00:00
Tim Almdal 80d4df3a4a Convert all item->type == "album" to item->is_album()
Convert all item->type == "photo" to item->is_photo()
2009-02-06 03:47:36 +00:00
Tim Almdal a70f3bf386 Have the quick delete file "item_before_delete" so that search and
notification modules can do their thing.  In addition, correct search
so it works properly and doesn't try to create an Item_id_Model class.
2009-02-02 04:58:19 +00:00
Bharat Mediratta b4f92c7de6 Add delete support as a quick-edit option 2009-01-29 09:26:39 +00:00
Bharat Mediratta 8d4b0afa4f Support making an album the album cover for its parent 2009-01-29 03:14:43 +00:00
Bharat Mediratta b9e8ce4190 Quick edit now lets you set the album cover. 2009-01-20 08:54:15 +00:00
Bharat Mediratta 3ba056d714 Add a quick edit pane for albums, too. 2009-01-20 07:11:14 +00:00
Bharat Mediratta 7482b6683e Add "quick edit" which lets you edit a photo's details from the albums
page.
2009-01-05 08:05:50 +00:00
Bharat Mediratta 0cfa51b5b7 Propagate rotation up to the parent album, if we're rotating the album cover. 2009-01-03 05:47:00 +00:00
Bharat Mediratta e8f1ff580c Add a new quick-edit mode for editing photos when viewing albums.
Implement image rotation this way.
2009-01-03 05:36:16 +00:00