Commit Graph

41 Commits

Author SHA1 Message Date
Tim Almdal
2c2839c13b Create a thumbnail stack of selected thumbnails for the organize
drawer
2009-05-07 17:39:34 +00:00
Tim Almdal
6a295dc93d 1) Leave an object selected if its clicked.
2) And a 1em left margin to provide more spacing, so the lasso is less inclusive
2009-05-07 05:16:56 +00:00
Tim Almdal
5305d1f569 Improve the selection/drag handling so that drag of a single item
doesn't have to be selected first
2009-05-07 04:56:08 +00:00
Tim Almdal
a8879cfe89 1) Improved selection processing.
2) Drawer closes if no images or albums are selected
2009-05-06 20:27:49 +00:00
Bharat Mediratta
b4c9a97050 Create item helper and move move_item(), remove_album_cover() and
make_album_cover() functions into it.
2009-05-02 20:34:02 +00:00
Bharat Mediratta
0fd82598b5 Move make_album_cover and remove_album_cover out of Item_Model and
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-02 20:14:13 +00:00
Bharat Mediratta
486517fac5 Clean up API to be organized around the functionality it provides, not the feature its provided for. 2009-05-02 19:11:22 +00:00
Bharat Mediratta
d0b8fbef1d Remove extra whitespace. 2009-05-02 19:04:17 +00:00
Bharat Mediratta
fd3d4370d1 Fix indentation. 2009-05-02 18:58:10 +00:00
Chad Kieffer
eb9162f6c4 Remove angled ends of edit drawer handle. 2009-05-02 06:34:05 +00:00
Tim Almdal
88c0ede495 Add missing return statement 2009-05-02 03:23:55 +00:00
Tim Almdal
a12ed1de02 Move the drawer to the bottom of the page and compress the thumb grid
when the drawer opens.  This way the drawer is never scrolled.
2009-05-02 03:08:30 +00:00
Chad Kieffer
590eceaf93 Set organize messages to use existing gMessage, added album cover message. 2009-05-01 05:35:56 +00:00
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
33122e8968 Change album cover functionality added 2009-04-29 03:57:24 +00:00
Tim Almdal
89bdd6ca98 The delete button now deletes the selected items 2009-04-29 01:29:39 +00:00
Tim Almdal
12d976b94d 1) Refactor the ajax calls so that the code is reused across multipl
request types.
2) Enable/Disable the drawer handle buttons depending on the number of
items selcted
3) Image rotation works.
2009-04-28 21:29:14 +00:00
Tim Almdal
091fde3e00 Another iteration of the organize module:
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-27 20:30:46 +00:00
Tim Almdal
465182e58f 1) Move the progress bar to a dialog
2) Provide status and error messages back to the user
2009-04-23 20:48:09 +00:00
Tim Almdal
b1a15f2130 Implement a cancel button so that if an organize task is paused, it
can be cancelled.
2009-04-23 04:53:48 +00:00
Tim Almdal
933770cf0e 1) Fix index overflow issue.
2) Fix where the microthumb was removed even if the move was cancelled
2009-04-22 23:23:15 +00:00
Tim Almdal
475b8fe9ff Dragging from the thumbgrid to an album in the tree now works.
Refactored the javascript to minimize duplication.
2009-04-22 16:09:57 +00:00
Tim Almdal
9d31564b7c 1) Disable drag when the rearrange task is running
2) Add the album name to the task name
2009-04-21 18:11:27 +00:00
Tim Almdal
4e944577f4 The pause button now works. 2009-04-21 14:15:58 +00:00
Tim Almdal
c94fc344e8 Added progress bar and pause and continue functionality to rearrange 2009-04-21 06:04:03 +00:00
Tim Almdal
e8ea822801 Remove debugging statements 2009-04-20 18:47:38 +00:00
Tim Almdal
ad10584dc1 1) Add rearrange processing as a task
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-20 18:44:19 +00:00
Tim Almdal
e8d99f22a1 Simplify the handling of moves to the beginning or end of the album 2009-04-19 18:42:53 +00:00
Tim Almdal
663c38a7e8 Continue javascript code cleanup 2009-04-19 18:33:35 +00:00
Tim Almdal
f1a9ac807c Restructure the java script code (i.e. separate complex callbacks or
objects into variables)
2009-04-19 18:02:07 +00:00
Tim Almdal
aaec040716 - Improve the movement of the placeholder
- 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-19 03:51:29 +00:00
Tim Almdal
1a332009c7 Change how mutiple requests for micro thumbnails is handler.
handle the edge cases where the draggable is dropped on the micro
thumbnail panel
2009-04-17 20:17:53 +00:00
Tim Almdal
16db338145 Fix typo that was causing an error 2009-04-17 14:33:09 +00:00
Tim Almdal
d8e9133873 Another iteration in the quest for the perfect organize module. At
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-17 02:06:00 +00:00
Chad Kieffer
9f488446d9 Fix up microthumb grid, changed unselect to deselect all, white space fixes. 2009-04-10 05:40:56 +00:00
Tim Almdal
898eba8e6f Here is the current state of "organize". I'm having trouble getting
drag and drop to work.  And to get it to layout properly.  Any
thoughts would be appreciated.
2009-04-09 16:33:14 +00:00
Bharat Mediratta
4041c6a0b2 Fix whitespace 2009-04-06 08:55:33 +00:00
Bharat Mediratta
fb818f3c4d Fix preamble 2009-04-06 08:53:37 +00:00
Chad Kieffer
0531c9262e Visually connect the selected album to the album thumbnail grid. Edit item opacity, selected items become opaque. 2009-04-06 05:02:56 +00:00
Tim Almdal
15fc9b9399 Get the preamble right so the unit test passes 2009-04-05 16:48:20 +00:00
Tim Almdal
f1cb43430b First iteration of the organize functionality (orginally called bulk
edit).  There is limited functionality in no edits work.  This is
primary a chance for the team to review the ui.  It is in a separate
module to isolate the changes.  Eventually, it will be moved back into core.
2009-04-03 00:50:43 +00:00