Commit Graph
5668 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 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 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
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 1596c9f3da Change _adjust_thumb_size to adjust_thumb_size and make public so we
can access if from organize
2009-04-28 21:26:12 +00:00
Bharat Mediratta 234aed87e6 auto install organize module 2009-04-28 21:07:03 +00:00
Bharat Mediratta e382ec748e Root album weight is now 1; Organize module is auto-activated; search_record has a key on item_id 2009-04-28 20:54:05 +00:00
Bharat Mediratta f3caf1eb52 Update upstream to to r3835 which resolves upstream ticket #1108
svn merge -r20638:20640 vendor/exifer/modified trunk/modules/exif/lib
2009-04-28 03:28:43 +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
Bharat Mediratta 2a5abfdbd4 Update value size to 1536 chars because I had an image which went over 1024 chars 2009-04-27 05:36:32 +00:00
Bharat Mediratta f118fc0c14 Fix an edge case with GPS data handling that results in this error:
fread: Length parameter must be greater than 0 in file modules/exif/lib/makers/gps.php on line 197

Filed upstream as:
  http://www.zenphoto.org/trac/ticket/1108
2009-04-27 03:58:16 +00:00
Bharat Mediratta f51765a4b2 Drop the item_id key; we don't need this level of strictness in most
cases and it slows down inserts.
2009-04-25 22:17:06 +00:00
Bharat Mediratta bab514a48d Change the value column to varbinary so that we can handle the occasional binary data embedded in places like the EXIF caption field 2009-04-25 22:02:50 +00:00
Bharat Mediratta 3950e7582b Fix status math. 2009-04-25 07:18:39 +00:00
Bharat Mediratta 2819a1b7b4 Extract as many records as we can in a second 2009-04-25 06:53:34 +00:00
Bharat Mediratta 63ce71a32b Add a key on item_id so that our query to find missing exif records is efficient 2009-04-25 06:52:44 +00:00
Chad Kieffer 0f6d15b304 Fixed typo in comment, added docblock. 2009-04-24 04:55:48 +00:00
Bharat Mediratta cda6e54aa4 add_group() was not getting $form before using it. 2009-04-24 00:33:27 +00:00
Bharat Mediratta e30c023bd3 Use single quotes so that user data containing $ doesn't suffer
variable interpolation.  Fixes ticket #229.
2009-04-23 23:58:16 +00:00
Tim Almdal 7bd44b22e2 1) Change the processing so the server_add start task can return done = 1
if there are no eligible files selected
2) Change the javascript to handle this condition and show a pop up
2009-04-23 21:42:34 +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
Bharat Mediratta 2890eb7589 Auto-hide the control toolbar so that it doesn't obscure the movie any longer than it has to. This resolves ticket #199. 2009-04-23 06:48:41 +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
Bharat Mediratta 1173b21f95 Fix bug in the item_before_delete() event handler 2009-04-23 04:53:19 +00:00
Bharat Mediratta 38b5c02cfc Remember to import album highlights 2009-04-23 02:46:53 +00:00
Bharat Mediratta 778cf0254e Use https if it's appropriate 2009-04-23 02:33:31 +00:00
Bharat Mediratta dd0e69ba3a Delete any comments associated with deleted items 2009-04-23 01:32:35 +00:00
Bharat Mediratta 6b4fa9105f Disable automatic session id regeneration because ajax requests cause it to bomb. 2009-04-23 00:49:35 +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 79712cb0b4 Remove the negative weighting for albums. The are now positioned
based on the insertion order.
2009-04-22 22:20:19 +00:00
Bharat Mediratta 47f531fc9c Mark a task as stalled if it's > 15 seconds old (because tasks should ping back much faster than that) 2009-04-22 19:51:25 +00:00
Bharat Mediratta 33775f9fb0 Throw an exception in graphics::resize() if the input file is empty 2009-04-22 19:50:38 +00:00
Bharat Mediratta 98d085e55f Minor cleanups:
* Delete g2_map records when the corresponding item is removed.
* Improve text on g2 import settings page
* Minor comment fixes.
2009-04-22 19:49:27 +00:00
Bharat Mediratta 8141fd5088 Set the default logging to 'notice' to make it more user friendly. 2009-04-22 19:32:24 +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 f9ec5d6de4 Make the scaling based on the target thumbnail size that was specified
at thumbnail creation.  This will remove the upscaling effect
2009-04-22 14:05:16 +00:00
Chad Kieffer b4bca043ac Added method to determine proportion of current thumb_size to the default, 150. Use this in the the default theme, or any other, to reduce the size of CSS widths and heights in albums, including .gItem. 2009-04-22 05:31:29 +00:00
Tim Almdal 1956a6ae95 Refactor the move functionality into a helper function so it can be
called from organize
2009-04-22 04:20:05 +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 0fdc4639c3 Remove duplicate word from status message 2009-04-21 14:41:06 +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
Bharat Mediratta 201e8cdf70 Highlight: we can now import photos and movies.
Notes:
* Don't store the g2->g3 map in the task; it gets too large and
  overflows the context column.
* Import album sort orders
* Try to treat duplication in the summary and description fields
  sensibly.
* Move the g2 import config page under the Settings menu
* Clean up the settings page slightly and send users to the
  maintenance page to do the actual import (not an optimal UI, but it
  works).
2009-04-21 04:21:34 +00:00
Bharat Mediratta e9867fb97c Theme the cancel-all link like the remove-all link. 2009-04-21 04:17:56 +00:00
Bharat Mediratta 6c911d2d7c Make the task iteration duration 1 second instead of 500ms. 2009-04-21 04:16:30 +00:00
Bharat Mediratta ace6335e64 Add a key on item_id for the search_records table so that when we left
join it against the item table to find missing ids it's fast.
2009-04-21 03:12:14 +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