Commit Graph

86 Commits

Author SHA1 Message Date
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
Bharat Mediratta
baff63b70b Very basic movie support. You can upload a FLV file, we use ffmpeg to
extract a thumbnail out of it and if you click through we show it
using flowplayer.
2009-02-22 05:21:44 +00:00
Chad Kieffer
c69b483e34 Added jQuery UI Accordion widget. Updated vendor branch README. 2009-02-12 01:19:03 +00:00
Chad Kieffer
fc162362de Set one of 3 dialog widths keying off of form's CSS width value: 300px, 500px, or $(window).width() -100. Tested in IE 6, 7, 8 and looks good. Also, remove titlebar from progress bar dialogs. 2009-02-10 05:48:55 +00:00
Chad Kieffer
767bf41287 Dialogs don't need to be resizeable, at least not yet. 2009-02-09 01:19:54 +00:00
Bharat Mediratta
b6b60bdc57 Copy Superfish 1.4.8 from the vendor branch 2009-02-08 23:49:43 +00:00
Bharat Mediratta
a68ac7d2ce Fix dialogs in IE7 so that they appear. The sizes are still wrong, though. 2009-02-08 23:39:25 +00:00
Chad Kieffer
aa1abbf82a Let the theme control overlay opacity for dialogs. 2009-02-08 19:35:10 +00:00
Chad Kieffer
8e3bb143c9 Removed duplicated images from vendor move. 2009-02-08 19:33:00 +00:00
Chad Kieffer
f7d226bd31 Move jQuery UI ThemeRoller css and images to lib. Should simplify future updates, keep default theme directories clean. 2009-02-08 19:17:19 +00:00
Chad Kieffer
ce826c3048 Updated jQuery UI in lib to 1.6rc6. Removed opacity settings in openDialog, refactored showLoading() a bit. 2009-02-07 21:01:52 +00:00
Jakob Hilden
5b17619ea8 added inplace edit to tag admin (form still needs to be set to rename using AJAX)
removed unnecessary {element: dialogLinks[i]} from dialog and panelLink handling.  now uses event.currentTarget
2009-02-04 07:14:22 +00:00