summaryrefslogtreecommitdiff
path: root/modules/organize
AgeCommit message (Collapse)Author
2009-08-30CSS rename: gMicroThumbXxx -> gOrganizeMicroThumbXxx to make it clearBharat Mediratta
that this is organize only.
2009-08-30Rename gAlbumText to gOrganizeAlbumText for consistency since this isBharat Mediratta
an organize-only construct.
2009-08-30remove unused #gOrganizeDialogBharat Mediratta
2009-08-30Manage the selection so we don't automatically select an albumBharat Mediratta
whenever we expand a tree.
2009-08-30Precalculate the organize tree based on the selected album and renderBharat Mediratta
it right away while still allowing incremental tree loading.
2009-08-29Update all code to use helper method html::clean(), html::purify(), ... ↵Andy Staudacher
instead of SafeString directly.
2009-08-29Change the organize tree to expand/collapse. It doesn't properly openBharat Mediratta
up to the album that you're viewing, and if you move a photo to a different album it'll reload the entire album tree.
2009-08-29L10n fixes for the admin_languages page, and JS/XSS cleanup of the organize ↵Andy Staudacher
views.
2009-08-29Fix a bug where organize doesn't properly generate the tree at the root album.Bharat Mediratta
2009-08-29Remove stray blank line.Bharat Mediratta
2009-08-29Get rid of the task infrastructure. The multiple requests greatlyBharat Mediratta
slow down simple operations. We may run into problems with more complex operations, but let's only add tasks into the mix when it's clear that we need them.
2009-08-29Major refactor of organize:Bharat Mediratta
* Clean up naming conventions for variables in the controller so that we specifically refer to albums with $album_id, etc. * Move complexity for drawing tree out of the controller and into the view. * Simplify task definitions to get rid of extraneous text * Change __PLACEHOLDERS__ to clearly define which is the album and which is the item that we're moving before/after * Remove as many CSS ids as we can from the tree view to keep things simple
2009-08-28Display the sort order in the Organize dialog, and allow users toBharat Mediratta
change the sort order on the fly.
2009-08-28Fix a couple of off-by-one errors.Bharat Mediratta
2009-08-28Update help text to eliminate 'edit' since we don't do that yet, and change ↵Bharat Mediratta
"items" to "photos".
2009-08-28Refactor rearrange_task_handler to have a more linear flow.Bharat Mediratta
2009-08-28Indentation fixes.Bharat Mediratta
2009-08-28Clean up in preparation for some refactoring.Bharat Mediratta
2009-08-28Add a @todo to defer loading the script/css to the organize dialog.Bharat Mediratta
2009-08-28Minor style fixes.Bharat Mediratta
2009-08-28Fix whitespace.Bharat Mediratta
2009-08-28Fix indentation.Bharat Mediratta
2009-08-17This patch adds some security to the organize dialog.Tim Almdal
1) If images are dragged from the content pane and dropped on a branch in the tree that the user only has view priviledges, then the drop is cancelled and the images are reverted. 2) The user cannot click on a branch, to which they only have view priviledges, the content pane does not change to the new album
2009-08-17remove the batch start/stop and replace the ORM update of the weight, with a ↵Tim Almdal
direct sql update. This bypasses the gallery3 event mechanism. Fire a album_rearrange event when the rearrangement is complete
2009-08-17Change back to using the ORM to update the child weight, but use the ↵Tim Almdal
batch::start() method so notifications are queued
2009-08-17Fix the performance problem related to setting the child weight, by ↵Tim Almdal
bypassing ORM and generating the sql directly.
2009-08-17The rearrange functionality works. but it is slower than shit. I've left ↵Tim Almdal
the debug statements in until we can solve this issue.
2009-08-16The progress bar appears during a move. Still having an issue with unable to ↵Tim Almdal
do a single select after a drop operation. I think its related to needing to destroy the existing selectable before creating the new one. The error I get is "this._selection[i].data("selectabe-item") is undefined."
2009-08-16In this patch, drag now works to the album tree, but the progress bar is notTim Almdal
showing. As well fixed a problem where selectable single clink no longer worked when the album was reloaded.
2009-08-13Added javascript portion of the drop functionality. At this point you can ↵Tim Almdal
drag selected images and drop them on the micro thumb grid in a different position or onto a branch in the gallery tree. No ajax call is made, it just writes the generated url and post data to the console, so it only works in ff right now.
2009-08-13Add a visual indicator of the insertion pointTim Almdal
2009-08-13Vertical scrolling of the thumb grid seems to work better now. Wasn't able ↵Tim Almdal
to get the draggable autoscrolling working, so this is a poor replacemment.
2009-08-12Implement the first part of drag functionality. Having trouble getting ↵Tim Almdal
visual feedback of the drop position between thumbnails, so this commit provides a checkpoint for trying various options
2009-08-09Enable microthumbnail selectionTim Almdal
2009-08-08Fix the problem where the login page and edit permission pages wereTim Almdal
supersized based on ly last commit.
2009-08-07Enhance how the organize dialog degrades if the browser window is not optimalTim Almdal
2009-08-07Make the organize dialog open properly in IE8, Chrome and FF. For some ↵Tim Almdal
reason (probably a timing thing) the height of the contents was not being set correctly in FF. So we just hard code an estimate of the size of the Draw handle, and message areas.
2009-08-06Further streamline the code.Bharat Mediratta
Organize_Controller: * Remove unnecessary constants * Rename index() to dialog() * Simplify _get_micro_thumb_grid organize.js: * Move sizing code in here from organize_dialog.html.php organize_dialog.html.php: * Move CSS and JS links in here so that we only load them when we need them. * Move sizing code into organize.js organize_thumb_grid.html.php: * Move pagination logic in here, since it's view centric * Collapse the css class determination code and inline it
2009-08-06* Rename setContents -> show_album to be consistent style wise (no camelBharat Mediratta
caps) and more explicit about what it's doing. * use toggleClass() to simplify the +/- css management.
2009-08-06Fix indentation.Bharat Mediratta
2009-08-06Leverage the gallery.dialog/js functionality in order to reduce duplicate codeTim Almdal
2009-08-06Remove 6 more lines by removing the generalization of the close dialog ↵Tim Almdal
processing
2009-08-06Remove the complicated calculation to determine the height of theTim Almdal
micro thumb grid, by setting all the parent elements to 100% in the css and then subtract the height of the button bar
2009-08-06Revert "Revert "Revert "Allow a theme to override the page refresh ↵Tim Almdal
mechanism. Create a new""" This reverts commit 7b1cca168cb9b29fcccdcdce9e32efb190e4575e. Basically remove it and Bharat and I will fight it out in SF for a resolution :-)
2009-08-06Tighten up the code by loading all the albums in the tree at once, removingTim Almdal
the events to populate the button bar.
2009-08-05Remove the resize dialog on window resize functionalityTim Almdal
2009-08-05Fix up formatting of items in thumbgridTim Almdal
2009-08-05Change the content pane based on the selection in the album treeTim Almdal
2009-08-05Change to use the new children and children_count APITim Almdal
2009-08-05Revert "Revert "Enable the expand/collapse of branches by clicking on the ↵Tim Almdal
plus/minus"" This reverts commit e37526f94df74a52a9cf36f0a5a5e641958ebbb3.