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
7fc833a392
Refactor the get maximum weight functionality into a method in the item helper, so that we can use it else where (i.e. the new organize module)
2009-08-17 08:47:39 -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
ebb44b05a2
Merge branch 'master' of git://github.com/gallery/gallery3
2009-08-09 08:43:18 -07:00
Bharat Mediratta
5c25973ee8
Require a valid url for users. Fixes ticket #612 .
2009-08-09 00:02:17 -07:00
Tim Almdal
dafe222994
Merge branch 'master' of git://github.com/gallery/gallery3
2009-08-08 21:29:13 -07:00
Bharat Mediratta
12f25a7e55
Fix the after_install loader to immediately open the "Welcome to
...
Gallery 3!" dialog, but not immediately open the "change your
password" dialog.
2009-08-08 21:26:55 -07:00
Tim Almdal
78b9754563
Merge branch 'master' of git://github.com/gallery/gallery3
2009-08-08 21:22:51 -07:00
Bharat Mediratta
c9f5000e65
Improve the graphics toolkit detection code so that properly
...
identifies situations where its restricted by open_basedir.
We now track more informatoin about the toolkit including the version
and any errors we encountered while doing the detection so that we can
provide more info downstream. This makes graphics::detect_toolkits()
a little heavier, but that's ok because it should not be called very
often.
In the process, refactor the controller and view hierarchy so that
it's a little more straightforward in the code.
Fixes ticket #616 .
2009-08-08 20:31:16 -07:00
Tim Almdal
1c5b04a2c5
Fix the problem where the login page and edit permission pages were
...
supersized based on ly last commit.
2009-08-08 16:26:34 -07:00
Tim Almdal
e4fb6959af
Forgot to save this one before committing the last two times... duh. Completes the conversion from using 1 to true for the immediate paramter to gallery_dialog
2009-08-08 16:18:33 -07:00
Tim Almdal
aac06342b3
Merge branch 'master' of git://github.com/gallery/gallery3
2009-08-08 16:11:28 -07:00
Tim Almdal
e04675470b
Forgot to save this file when i changed the value from 1 to true
2009-08-08 16:01:20 -07:00
Tim Almdal
35c6bc3cfa
Merge branch 'master' of git://github.com/gallery/gallery3
2009-08-08 15:48:13 -07:00
Tim Almdal
cb1ae141bb
Create an new option 'immediate' and if set to true then don't try to set up click events, but just show the dialog. Also remove the destroy method and put all the cleanup into the dialog close handler
2009-08-08 15:46:53 -07:00
Bharat Mediratta
7863aa16f9
Update tags module to notify modules when items related to a tag are
...
affected. Practically speaking this means that we'll reindex items
when tags are added or removed from them.
API change:
Remove item_related_updated_batch event.
Rationale:
While this is an efficient event, it requires module developers to
support two event APIs for staying up to date and increases the
likelihood that they'll forget one and have data corruption. Force
them all through the slower but more reliable pipe, for now. We
can always try to improve efficiency by using the batch_start and
batch_stop events.
2009-08-08 14:30:21 -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
e4eec71efa
Rename gallery.common.js functions to conform to our naming standards
...
and have some basic namespacing:
showMessage --> gallery_show_message
vAlign --> gallery_valign
showLoading --> gallery_show_loading
Convert gallery.show_full_size.js to be a jQuery function and give it a namespace:
show_full_size --> gallery_show_full_size
2009-08-07 11:53:40 -07:00
Tim Almdal
445a8fb1b6
Change galleryPanel and galleryDialog widgets to gallery_panel and gallery_dialog respectively
...
Signed-off-by: Bharat Mediratta <bharat@menalto.com >
2009-08-08 02:08:42 +08:00
Tim Almdal
a302a9c3fa
Refactor the gallery dialog into a jQuery widget
...
Signed-off-by: Bharat Mediratta <bharat@menalto.com >
2009-08-08 02:08:28 +08:00
Tim Almdal
49d46e4010
Change galleryPanel and galleryDialog widgets to gallery_panel and gallery_dialog respectively
2009-08-07 10:47:56 -07:00
Bharat Mediratta
1591c3871a
Don't show the ajaxy login link in the top right corner if we're on the login page itself.
...
Signed-off-by: Bharat Mediratta <bharat@menalto.com >
2009-08-08 01:40:54 +08:00
Tim Almdal
bc6c5207be
Refactor the gallery dialog into a jQuery widget
2009-08-07 08:58:57 -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
Bharat Mediratta
3850587519
Merge branch 'master' of git@github.com:talmdal/gallery3 into talmdal_branch
2009-08-06 16:15:40 -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
Bharat Mediratta
7ea05eacd7
Merge branch 'master' of git://github.com/talmdal/gallery3 into talmdal_branch
2009-08-06 11:21:18 -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
b826182b7a
Cleanup the javascript for enabling dialog or panel links.
...
1) We don't need to loop over the elements to bind the event handler.
2) Just include gallery.panel.js for all the admin pages.
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-08-06 22:28:05 +08:00
Tim Almdal
5997f57323
Cleanup the javascript for enabling dialog or panel links.
...
1) We don't need to loop over the elements to bind the event handler.
2) Just include gallery.panel.js for all the admin pages.
2009-08-06 07:22:24 -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
26362ae7e2
Merge branch 'master' of git://github.com/gallery/gallery3
2009-08-06 04:50:30 -07:00
Bharat Mediratta
cd5c99668b
Don't show the ajaxy login link in the top right corner if we're on the login page itself.
2009-08-05 22:32:41 -07:00
Tim Almdal
cab46cf038
Remove the resize dialog on window resize functionality
2009-08-05 22:28:37 -07:00
Bharat Mediratta
f0b3d37d18
Chain some jQuery calls together to reduce lines of code.
2009-08-05 22:17:03 -07:00
Tim Almdal
a6fb9a69a0
Merge branch 'master' of git://github.com/gallery/gallery3
2009-08-05 17:47:33 -07:00
Tim Almdal
a03f8b1003
Fix up formatting of items in thumbgrid
2009-08-05 16:45:44 -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
a92a46b0cd
Change to use the new children and children_count API
2009-08-05 11:04:42 -07:00