Chad Kieffer
66e1e32f34
Removed YUI grids. Added g- prefix to selected class. Layout almost completely restored, still need to fix action-status message box
2009-10-28 23:34:53 -06:00
Chad Kieffer
d581bbbd1e
Renamed more CSS selectors from gName to g-name.
2009-10-04 15:53:00 -06:00
Chad Kieffer
3e6ba7acc3
Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-04 00:27:22 -06:00
Chad Kieffer
e1e8904e4a
Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's and classes in the login/reset password dialog.
2009-09-30 22:49:36 -06:00
Tim Almdal
6c0732e16f
Set the AlbumTreeContainer instead of the height. This fixes ticket #755
2009-09-13 16:24:03 -07:00
Tim Almdal
1d40c77c4c
Update the organize module to use the release version of jquery Selectable. 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-12 08:53:24 -07:00
Tim Almdal
25ea6085b7
Reset the margins when the mouse is over a thumbnail when dragging. When the border is displayed then adjust the margin to account for the border. Just hidding the border causes things to move.
2009-09-10 21:26:07 -07:00
Tim Almdal
bea89be268
If the current drop target is not defined, in that we have moved out of the range of the current li elements, then assume the drop is occurring at the end of the list items. Fixes #742
2009-09-10 07:59:29 -07:00
Bharat Mediratta
c10b5cc69c
Minor refactoring.
2009-08-30 17:00:33 -07:00
Bharat Mediratta
53390ba79a
CSS rename: gMicroThumbXxx -> gOrganizeMicroThumbXxx to make it clear
...
that this is organize only.
2009-08-30 14:58:26 -07:00
Bharat Mediratta
5cce88cd04
Rename gAlbumText to gOrganizeAlbumText for consistency since this is
...
an organize-only construct.
2009-08-30 14:50:53 -07:00
Bharat Mediratta
483d8df91b
Change the organize tree to expand/collapse. It doesn't properly open
...
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-29 16:33:22 -07:00
Bharat Mediratta
b833cb6073
Get rid of the task infrastructure. The multiple requests greatly
...
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-29 10:48:23 -07:00
Bharat Mediratta
f257cd3d69
Major refactor of organize:
...
* 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-29 10:00:47 -07:00
Bharat Mediratta
cb2171d082
Display the sort order in the Organize dialog, and allow users to
...
change the sort order on the fly.
2009-08-28 14:27:37 -07:00
Bharat Mediratta
83e850bc33
Minor style fixes.
2009-08-28 09:19:20 -07:00
Tim Almdal
82edd2a37b
This patch adds some security to the organize dialog.
...
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-17 19:52:40 -07:00
Tim Almdal
dd9f4b6d7f
The rearrange functionality works. but it is slower than shit. I've left the debug statements in until we can solve this issue.
2009-08-17 08:49:37 -07:00
Tim Almdal
5f546050d1
The progress bar appears during a move. Still having an issue with unable to 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-16 16:20:43 -07:00
Tim Almdal
76f320ab3d
In this patch, drag now works to the album tree, but the progress bar is not
...
showing. As well fixed a problem where selectable single clink no longer
worked when the album was reloaded.
2009-08-16 12:36:14 -07:00
Tim Almdal
eeae2dc56c
Added javascript portion of the drop functionality. At this point you can 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-13 21:31:20 -07:00
Tim Almdal
d758266fab
Add a visual indicator of the insertion point
2009-08-13 18:58:40 -07:00
Tim Almdal
5a84df9ac5
Vertical scrolling of the thumb grid seems to work better now. Wasn't able to get the draggable autoscrolling working, so this is a poor replacemment.
2009-08-13 10:56:50 -07:00
Tim Almdal
3823f65dfb
Implement the first part of drag functionality. Having trouble getting visual feedback of the drop position between thumbnails, so this commit provides a checkpoint for trying various options
2009-08-12 21:55:25 -07:00
Tim Almdal
39d0098038
Enable microthumbnail selection
2009-08-09 09:00:10 -07:00
Tim Almdal
685b1ddf88
Enhance how the organize dialog degrades if the browser window is not optimal
2009-08-07 21:40:35 -07:00
Tim Almdal
7b0ea229b8
Make the organize dialog open properly in IE8, Chrome and FF. For some 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-07 17:07:04 -07:00
Bharat Mediratta
a245c57400
Further streamline the code.
...
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 21:52:23 -07:00
Bharat Mediratta
d3f4643699
* Rename setContents -> show_album to be consistent style wise (no camel
...
caps) and more explicit about what it's doing.
* use toggleClass() to simplify the +/- css management.
2009-08-06 21:02:22 -07:00
Bharat Mediratta
6e4023a720
Fix indentation.
2009-08-06 16:16:11 -07:00
Tim Almdal
794a7a5abf
Leverage the gallery.dialog/js functionality in order to reduce duplicate code
2009-08-06 14:55:03 -07:00
Tim Almdal
7ed15ea481
Remove 6 more lines by removing the generalization of the close dialog processing
2009-08-06 10:03:38 -07:00
Tim Almdal
d7c7a06efe
Remove the complicated calculation to determine the height of the
...
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-06 09:46:39 -07:00
Tim Almdal
7bdf382e81
Revert "Revert "Revert "Allow a theme to override the page refresh mechanism. Create a new"""
...
This reverts commit 7b1cca168c .
Basically remove it and Bharat and I will fight it out in SF for a resolution :-)
2009-08-06 07:02:41 -07:00
Tim Almdal
8131e6fa38
Tighten up the code by loading all the albums in the tree at once, removing
...
the events to populate the button bar.
2009-08-06 06:33:17 -07:00
Tim Almdal
cab46cf038
Remove the resize dialog on window resize functionality
2009-08-05 22:28:37 -07:00
Tim Almdal
824a80b0d4
Change the content pane based on the selection in the album tree
2009-08-05 15:24:31 -07:00
Tim Almdal
63f3efef37
Revert "Revert "Enable the expand/collapse of branches by clicking on the plus/minus""
...
This reverts commit e37526f94d .
2009-08-05 10:26:49 -07:00
Tim Almdal
65c850c393
Revert "Revert "Checkpoint the organize module rewrite. At this point, it doesn't really do""
...
This reverts commit 397468c47b .
2009-08-05 10:26:11 -07:00
Tim Almdal
7b1cca168c
Revert "Revert "Allow a theme to override the page refresh mechanism. Create a new""
...
This reverts commit 9f396178ce .
2009-08-05 10:25:23 -07:00
Tim Almdal
9f396178ce
Revert "Allow a theme to override the page refresh mechanism. Create a new"
...
This reverts commit 1f014aae6c .
2009-08-05 09:24:27 -07:00
Tim Almdal
397468c47b
Revert "Checkpoint the organize module rewrite. At this point, it doesn't really do"
...
This reverts commit a25f08d433 .
2009-08-05 09:23:32 -07:00
Tim Almdal
e37526f94d
Revert "Enable the expand/collapse of branches by clicking on the plus/minus"
...
This reverts commit 869c3de961 .
2009-08-05 09:23:01 -07:00
Tim Almdal
869c3de961
Enable the expand/collapse of branches by clicking on the plus/minus
...
icons. Branches with no albums, will not have an icon.
2009-08-05 08:31:58 -07:00
Tim Almdal
a25f08d433
Checkpoint the organize module rewrite. At this point, it doesn't really do
...
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-08-03 09:19:17 -07:00
Tim Almdal
1f014aae6c
Allow a theme to override the page refresh mechanism. Create a new
...
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-27 12:39:12 -07:00
Tim Almdal
fcb031c2b6
Rename the get_url function in organize.js so that it doesn't collide with the
...
one in server_add
2009-07-04 22:47:43 -07:00
Tim Almdal
0451351f51
Set a minimum distance (10px) that the cursor has to move inorder for
...
the draggable functionality to be activated
2009-05-22 16:13:37 +00:00
Tim Almdal
09c8953af7
Provide delete confirmations in quick pane and organize features. If
...
I've missed any spots let me know.
2009-05-21 02:24:37 +00:00
Tim Almdal
a9e3692027
1) This provides the editting functionality for albums and photos in the
...
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-21 01:31:29 +00:00