summaryrefslogtreecommitdiff
path: root/modules/organize/js/organize.js
AgeCommit message (Collapse)Author
2009-10-04Renamed more CSS selectors from gName to g-name.Chad Kieffer
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-09-30Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's ↵Chad Kieffer
and classes in the login/reset password dialog.
2009-09-13Set the AlbumTreeContainer instead of the height. This fixes ticket #755Tim Almdal
2009-09-12Update the organize module to use the release version of jquery Selectable. ↵Tim Almdal
Unfortunately this does not have the functionality to select additional thumbnails using the ctrl or alt-keys, it is preferable to forking the Selectable component. This functionality should arrive with ui.jquery 1.8.x
2009-09-10Reset the margins when the mouse is over a thumbnail when dragging. When the ↵Tim Almdal
border is displayed then adjust the margin to account for the border. Just hidding the border causes things to move.
2009-09-10If the current drop target is not defined, in that we have moved out of the ↵Tim Almdal
range of the current li elements, then assume the drop is occurring at the end of the list items. Fixes #742
2009-08-30Minor refactoring.Bharat Mediratta
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-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-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-28Minor style fixes.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-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-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-05Change the content pane based on the selection in the album treeTim Almdal
2009-08-05Revert "Revert "Enable the expand/collapse of branches by clicking on the ↵Tim Almdal
plus/minus"" This reverts commit e37526f94df74a52a9cf36f0a5a5e641958ebbb3.
2009-08-05Revert "Revert "Checkpoint the organize module rewrite. At this point, it ↵Tim Almdal
doesn't really do"" This reverts commit 397468c47b8fc3fefeb54ff19a73980ed1dd8c20.
2009-08-05Revert "Revert "Allow a theme to override the page refresh mechanism. ↵Tim Almdal
Create a new"" This reverts commit 9f396178cedc96abb282e72ff0e843e255c8225a.
2009-08-05Revert "Allow a theme to override the page refresh mechanism. Create a new"Tim Almdal
This reverts commit 1f014aae6c16bbda62d8f5937180f11ccb0eb1b1.
2009-08-05Revert "Checkpoint the organize module rewrite. At this point, it doesn't ↵Tim Almdal
really do" This reverts commit a25f08d433d504a53763feb358a1aa7f5f798de6.
2009-08-05Revert "Enable the expand/collapse of branches by clicking on the plus/minus"Tim Almdal
This reverts commit 869c3de9612a598dae0ce400991bdbe173a2decc.
2009-08-05Enable the expand/collapse of branches by clicking on the plus/minusTim Almdal
icons. Branches with no albums, will not have an icon.
2009-08-03Checkpoint the organize module rewrite. At this point, it doesn't really doTim Almdal
anything, but get the dialog up, populate the album tree and intelligently populate the micro thumb grid. Still to do: 1) get the microthumbs laided out ptoperly 2) expand and collapse functionality in the album tree 3) use the album tree to change the content of the micro thumb grid 4) Actually add some functionality At the moment, it supports a callback "" to allow modules to add icons to the organize drawer label. The close button is added outside of this framework as it will always be last.
2009-07-27Allow a theme to override the page refresh mechanism. Create a newTim Almdal
javascript lib (gallery.reload.js) which defines the functions gallery_reload() and gallery_location(new_location). They just do a window.location.reload() and window.location = new_location. This change breaks the assumption that all themes will handle page reloads the same and allows the theme to customize the page refresh.
2009-07-04Rename the get_url function in organize.js so that it doesn't collide with theTim Almdal
one in server_add
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