Commit Graph

114 Commits

Author SHA1 Message Date
Tim Almdal
b184f995f8 Correct indentation 2009-08-19 06:12:29 -07:00
Tim Almdal
bc42df35ee Merge branch 'master' of git://github.com/gallery/gallery3 2009-08-19 05:14:05 -07:00
Chad Kieffer
3b8323d5b4 Merge branch 'master' of git@github.com:gallery/gallery3 2009-08-18 23:08:32 -06:00
Tim Almdal
693e95e7b0 Use the jquery-ui library that contains a prerelease version of the slectable component
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-13 05:20:38 +08:00
Tim Almdal
39b37cc585 Use the jquery-ui library that contains a prerelease version of the slectable component 2009-08-12 14:13:39 -07:00
Chad Kieffer
65e97fda48 Move context menu to gallery.common 2009-08-11 00:40:14 -06:00
Chad Kieffer
a10c309c36 Replace tabs w/ spaces. 2009-08-11 00:28:38 -06:00
Chad Kieffer
3e3bbd5d2e Merge branch 'master' of git@github.com:bharat/gallery3 2009-08-11 00:15:04 -06:00
Bharat Mediratta
cbba45fffc Create the concept of an "ajax link" and use it for thumbnail rotation
and album covers in the context menu.

Notes:
- This requires context_menu() to have a CSS selector that refers to the
  <img> that we're operating on, otherwise we don't know how to find the
  thumbnail, etc.
- Create Menu_Element_Ajax_Link which has an ajax_handler attribute
  that contains a snippet of JS that we're going to run when the ajax
  call returns.
- Add $.gallery_replace_image in gallery.common.js
- Add lib/gallery.ajax.js which can be used to ajaxify any link, and have
  ui.init.js in the themes call that on all .gAjaxLink elements.
2009-08-10 23:07:50 -07:00
Chad Kieffer
e3a58b76c1 Return .each() to work with more than an individual photo. 2009-08-10 23:11:31 -06:00
Bharat Mediratta
790545ac97 Add missing semicolons. 2009-08-10 10:49:50 -07:00
Chad Kieffer
24e29b0b68 Rename fit_image to fit_photo for consistency. 2009-08-09 23:10:02 -06:00
Chad Kieffer
69b7b1803a Move hover effect to a function. 2009-08-09 23:08:18 -06:00
Chad Kieffer
a961211f56 Move the get photo filter out to it's own function for re-use. Docblock cleanup. 2009-08-09 22:51:21 -06:00
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
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
aac06342b3 Merge branch 'master' of git://github.com/gallery/gallery3 2009-08-08 16:11:28 -07: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
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
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