summaryrefslogtreecommitdiff
path: root/modules/organize
AgeCommit message (Collapse)Author
2009-06-01Security pass over all controller code. Mostly adding CSRF checkingBharat Mediratta
and verifying user permissions, but there are several above-the-bar changes: 1) Server add is now only available to admins. This is a hard requirement because we have to limit server access (eg: server_add::children) to a user subset and the current permission model doesn't include that. Easiest fix is to restrict to admins. Got rid of the server_add permission. 2) We now know check permissions at every level, which means in controllers AND in helpers. This "belt and suspenders" approach will give us defense in depth in case we overlook it in one area. 3) We now do CSRF checking in every controller method that changes the code, in addition to the Forge auto-check. Again, defense in depth and it makes scanning the code for security much simpler. 4) Moved Simple_Uploader_Controller::convert_filename_to_title to item:convert_filename_to_title 5) Fixed a bug in sending notification emails. 6) Fixed the Organize code to verify that you only have access to your own tasks. In general, added permission checks to organize which had pretty much no validation code. I did my best to verify every feature that I touched.
2009-05-31Run all variables that come from user-entered data through p::clean()Bharat Mediratta
2009-05-27Update all references to the core application to now point to theBharat Mediratta
gallery module. This type of mass update is prone to some small bugs.
2009-05-26Since organize is now in the preview stage and will probably beTim Almdal
rewritten by beta2, pull all of its "tenticles" back into itself and out of core or tags module.
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-25Delete placeholder comments.Bharat Mediratta
2009-05-22Set a minimum distance (10px) that the cursor has to move inorder forTim Almdal
the draggable functionality to be activated
2009-05-21Provide delete confirmations in quick pane and organize features. IfTim Almdal
I've missed any spots let me know.
2009-05-211) This provides the editting functionality for albums and photos in theTim Almdal
organize feature. 2) Remove the tag functionality at this point 3) Added a callback to handle validating conflicting names (only used by organize at this point. 4) Closes #231
2009-05-18This takes us the next step closer to providing bulk edit. We stillTim Almdal
can't edit, but we are getting closer :-). This change sets up a framework for modules to contribute edit panels to the organize drawer. Currently implemented General (albums and photos), Sort Order (albums only) and Manage Tags
2009-05-14Use ternary operators to tighten up some logicBharat Mediratta
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-07Create a thumbnail stack of selected thumbnails for the organizeTim Almdal
drawer
2009-05-071) Leave an object selected if its clicked.Tim Almdal
2) And a 1em left margin to provide more spacing, so the lasso is less inclusive
2009-05-07Improve the selection/drag handling so that drag of a single itemTim Almdal
doesn't have to be selected first
2009-05-061) Improved selection processing.Tim Almdal
2) Drawer closes if no images or albums are selected
2009-05-02Create item helper and move move_item(), remove_album_cover() andBharat Mediratta
make_album_cover() functions into it.
2009-05-02Move make_album_cover and remove_album_cover out of Item_Model andBharat Mediratta
into the core helper. Clean up interactions so that when we remove an album cover we pick a new one, or clean out the old album cover if there are no other choices.
2009-05-02Clean up API to be organized around the functionality it provides, not the ↵Bharat Mediratta
feature its provided for.
2009-05-02Remove extra whitespace.Bharat Mediratta
2009-05-02Fix indentation.Bharat Mediratta
2009-05-02Remove angled ends of edit drawer handle.Chad Kieffer
2009-05-02Add missing return statementTim Almdal
2009-05-02Move the drawer to the bottom of the page and compress the thumb gridTim Almdal
when the drawer opens. This way the drawer is never scrolled.
2009-05-01Set organize messages to use existing gMessage, added album cover message.Chad Kieffer
2009-04-29Refactor the creation and removal of the album covers intoTim Almdal
make_album_cover and remove_album_cover methods in Item_Model. Usage: $photo->make_album_cover() $album->remove_album_cover()
2009-04-29Change album cover functionality addedTim Almdal
2009-04-29The delete button now deletes the selected itemsTim Almdal
2009-04-281) Refactor the ajax calls so that the code is reused across multiplTim Almdal
request types. 2) Enable/Disable the drawer handle buttons depending on the number of items selcted 3) Image rotation works.
2009-04-27Another iteration of the organize module:Tim Almdal
Rearrange the layout as per discussion with thumb, start the drawer functionality. Still to do... 1) Add the processing behind the buttons on the drawer handle 2) Enable the drawer buttons when something is selected 3) Create a copy of the thumbs for the drawer 4) Add the bulk editting functionality to the drawer
2009-04-231) Move the progress bar to a dialogTim Almdal
2) Provide status and error messages back to the user
2009-04-23Implement a cancel button so that if an organize task is paused, itTim Almdal
can be cancelled.
2009-04-221) Fix index overflow issue.Tim Almdal
2) Fix where the microthumb was removed even if the move was cancelled
2009-04-22Dragging from the thumbgrid to an album in the tree now works.Tim Almdal
Refactored the javascript to minimize duplication.
2009-04-211) Disable drag when the rearrange task is runningTim Almdal
2) Add the album name to the task name
2009-04-21The pause button now works.Tim Almdal
2009-04-21Added progress bar and pause and continue functionality to rearrangeTim Almdal
2009-04-20Remove debugging statementsTim Almdal
2009-04-201) Add rearrange processing as a taskTim Almdal
2) Improved drop location determination 3) Add a revert if dropped on an invalid target 4) Add a popup dialog to display ajax errors Still to do progress bar, pause/continue and status messages
2009-04-19Simplify the handling of moves to the beginning or end of the albumTim Almdal
2009-04-19Continue javascript code cleanupTim Almdal
2009-04-19Restructure the java script code (i.e. separate complex callbacks orTim Almdal
objects into variables)
2009-04-19- Improve the movement of the placeholderTim Almdal
- Make sure the thumbgrid will utoscroll when dragging - And an ordinal attribute to the thumbnail when generated, based on the current sort order of the album.
2009-04-17Change how mutiple requests for micro thumbnails is handler.Tim Almdal
handle the edge cases where the draggable is dropped on the micro thumbnail panel
2009-04-17Fix typo that was causing an errorTim Almdal
2009-04-17Another iteration in the quest for the perfect organize module. AtTim Almdal
this point you can select microthumbs, by clicking on them, ctrl-click will add to the selection. You can select by drawing a lasso around images. Holding the ctrl will add the lassoed thumbs to the selection. Once slected, thumbs can be dragged and dropped within the current At this point no background processing takes place
2009-04-10Fix up microthumb grid, changed unselect to deselect all, white space fixes.Chad Kieffer
2009-04-09Here is the current state of "organize". I'm having trouble gettingTim Almdal
drag and drop to work. And to get it to layout properly. Any thoughts would be appreciated.
2009-04-06Fix whitespaceBharat Mediratta
2009-04-06Fix preambleBharat Mediratta