Commit Graph

97 Commits

Author SHA1 Message Date
Chad Kieffer
de00a4ac39 Explicitly use gValign class rather than first child. 2009-08-09 11:40:39 -06:00
Chad Kieffer
2f4c4a3f70 Rename resizeImage gallery_fit_image to follow convention. Move the function to gallery.common.js. 2009-08-09 11:31:31 -06:00
Tim Almdal
ae428a7e21 remove a debug statement left over from previous commit 2009-08-08 15:52:04 -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
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
Bharat Mediratta
a5137f5972 Remove boilerplate comment. 2009-08-07 11:17:07 -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
30b77b5714 Forgot this file on the gallery dialog commit
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-08-08 02:08:34 +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
6abcc06e21 Refactor the gallery.panel.js as a jQuery widget.
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-07 21:22:14 +08: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
0a2da7731a Simplify getViewportSize function to use the jQuery height and width functions 2009-07-31 05:27:53 -07:00
Tim Almdal
d34c6b6fb3 Move the getViewportSize method to gallery.common.js 2009-07-30 06:00:10 -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
Bharat Mediratta
214d977f4d Don't close the dialog window after we successfully complete an
action.  The expectation is that we're going to reload the page (or
redirect to a new url).  If we close the dialog, then we can trigger
the onhover for items we've just deleted causing errors.

Simplify the API while we're at it by getting rid of the no-longer-used
on_success argument to openDialog()

This fixes #528.
2009-07-11 06:51:21 -07:00
Andy Staudacher
21f228b1ae Ticket 86 (addendum) - Guard against themes that don't define MSG_CANCEL and add the message to admin_default as
well.
2009-06-29 21:03:40 -07:00
Andy Staudacher
0eb9a2aacd Fix for ticket 86 - Make Cancel button in doalogs localizable. 2009-06-29 20:55:23 -07:00
Bharat Mediratta
228962f0e8 Use Number() instead of toFixed().. FF 3.x doesn't seem to like toFixed() on native types. 2009-06-28 19:42:41 -07:00
Bharat Mediratta
18a2ba8b87 Strip carriage returns 2009-06-22 13:42:36 -07:00
Bharat Mediratta
fa7adb76b5 Strip carriage returns 2009-06-22 13:37:08 -07:00
Bharat Mediratta
6c6259c6c9 Update jquery-ui to 1.7.2 2009-06-20 21:00:17 -07:00
Bharat Mediratta
f91c92c883 Update to 1.4.2 2009-06-20 20:41:17 -07:00
Bharat Mediratta
595f48440a Update to 1.2.7 2009-06-20 20:41:00 -07:00
Bharat Mediratta
433995941d Reapply the change from aaac244124 where
we comment out the code that prevents the file uploader code from
aborting when there are input elements named "submit".
2009-06-20 17:48:44 -07:00
Bharat Mediratta
aef6c1e750 Updated jquery.form to a9c8862544aa3dde81c0aa1554edce148b31742d (2.28) 2009-06-20 17:47:13 -07:00
Bharat Mediratta
7ad5e9ee2c Move the show_full_size code into gallery/lib so that it's generally
available to themes that want to use it.  It should probably
eventually be generalized away from just being for full sized images,
but it's a step in the right direction.

Fixes ticket #427.
2009-06-16 18:05:23 -07:00
Chad Kieffer
abd933d9be Move jquery local scroll module from default theme to lib, only load it if viewing photo view. White space cleanup, removed debug print from template. 2009-06-14 22:35:12 -06:00
Chad Kieffer
a3344814d7 Keep status messages. Users click away and may miss them, especially with tasks which take longer to complete. 2009-06-08 23:19:09 -06:00
Bharat Mediratta
fe7779b595 Remove console.log() calls, they break some browsers 2009-06-04 12:12:35 -07:00
Bharat Mediratta
2d0eaedf02 Refresh of SWFUpload 2.2.0.1 (functionally the same as before) 2009-05-26 23:10:51 -07:00
Chad Kieffer
c792221821 Fixed docblock reference 2009-05-26 04:56:43 +00:00
Chad Kieffer
88e1f02c1a Split out re-used JavaScript for common functions (messages, valign), panel toggle, and forms to external files. 2009-05-26 03:59:35 +00:00
Chad Kieffer
8deabcc195 Updated to jQuery 1.3.2, needs to be pushed upstream. 2009-05-01 05:11:09 +00:00
Tim Almdal
7349d49945 Add the ui.jquery selectable plugin by copying the new vendor version to trunk 2009-04-16 00:20:45 +00:00
Bharat Mediratta
db77192598 Update SWFUpload to v2.2.0.1 2009-04-06 04:08:44 +00:00
Tim Almdal
75d98701ae Guard the calling of the form closing event so its not called if there
is no form.
2009-03-26 04:09:03 +00:00
Tim Almdal
520a4b41b3 Add a "form_closing" custom event to the dialog processing. This
allows the form in the dialog todo custom processing when the form
closes.

For example, the server_add dialog (next commit) uses this callback to
determine if the upload task was cancelled and display a warning
message when the page reloads.

Usage:
$("#gServerAdd form").bind("form_closing", function(target){...});
2009-03-24 17:30:06 +00:00
Chad Kieffer
591403d794 Added rotate cc and ccw icons to themeroller theme and css to default theme, applied to quick pane rotate buttons. Hope that jQuery UI includes rotate icons eventrually so we don't have to maintain this. 2009-03-18 06:15:37 +00:00
Bharat Mediratta
489059342e Remove windows line endings 2009-03-17 18:32:02 +00:00
Bharat Mediratta
63c8bb8d76 Updated lib/swfupload to SWFUpload v2.2.0 Beta 5 2009-03-17 06:00:21 +00:00
Bharat Mediratta
0f5ccc9aa3 Switch from using SimpleUploader to using swfUpload as our flash based
uploader.  This is modeled on
http://codex.gallery2.org/Gallery3:Upload_UX but is not yet complete.

Notes:
* Changed #gProgressBar to .gProgressBar to support multiple progress
  bars on the same page
* Added a bunch of CSS to the "needs a home" section in
  themes/default/css/screen.css
2009-03-17 05:20:37 +00:00
Bharat Mediratta
2ef8e28198 Pass on_success through to ajaxify_dialog, resolving an bug created
in r20302.
2009-03-08 00:23:15 +00:00
Tim Almdal
e96e26a12f Fix for ticket #130
1) Shuffled code around to create a on_form_loaded function
2) Check for a data.reset string in the json return.  If it exists and
is a function then call. The idea being that if there is an error we
might have to reset some jquery widget initialization.
2009-03-06 22:35:05 +00:00
Tim Almdal
6a33dd2c5c Include the ui.tabs.css in the theme css file 2009-03-06 17:49:46 +00:00
Tim Almdal
1333c233aa Update jquery-ui to 1.7 and include the tab library 2009-03-06 16:41:22 +00:00
Tim Almdal
6d7fa5875a rename jquery.autocomplete.pack.js 2009-03-04 19:46:55 +00:00
Tim Almdal
ef8c71417a Move the autocomplete js and css files to lib 2009-03-04 16:10:03 +00:00
Bharat Mediratta
515c081f79 Add support MP4 movies also. Flowplayer supports them and can stream
them using the h264streaming plugin.  Everything else is a fairly
minor change.
2009-02-25 05:27:29 +00:00
Chad Kieffer
ecaf6bda32 Added fix i18n todo item for cancel link 2009-02-23 00:44:50 +00:00
Chad Kieffer
9b73213693 Add Cancel link next to submit buttons in dialogs. Apply button style to buttons in dialogs. 2009-02-22 08:05:15 +00:00