summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2009-08-11Replace tabs w/ spaces.Chad Kieffer
2009-08-11Merge branch 'master' of git@github.com:bharat/gallery3Chad Kieffer
2009-08-10Create the concept of an "ajax link" and use it for thumbnail rotationBharat Mediratta
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-10Return .each() to work with more than an individual photo.Chad Kieffer
2009-08-10Add missing semicolons.Bharat Mediratta
2009-08-09Rename fit_image to fit_photo for consistency.Chad Kieffer
2009-08-09Move hover effect to a function.Chad Kieffer
2009-08-09Move the get photo filter out to it's own function for re-use. Docblock cleanup.Chad Kieffer
2009-08-09Explicitly use gValign class rather than first child.Chad Kieffer
2009-08-09Rename resizeImage gallery_fit_image to follow convention. Move the function ↵Chad Kieffer
to gallery.common.js.
2009-08-08remove a debug statement left over from previous commitTim Almdal
2009-08-08Create an new option 'immediate' and if set to true then don't try to set up ↵Tim Almdal
click events, but just show the dialog. Also remove the destroy method and put all the cleanup into the dialog close handler
2009-08-07Rename gallery.common.js functions to conform to our naming standardsBharat Mediratta
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-07Remove boilerplate comment.Bharat Mediratta
2009-08-08Change galleryPanel and galleryDialog widgets to gallery_panel and ↵Tim Almdal
gallery_dialog respectively Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-08-08Forgot this file on the gallery dialog commitTim Almdal
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-08-08Refactor the gallery dialog into a jQuery widgetTim Almdal
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-08-07Refactor the gallery.panel.js as a jQuery widget.Tim Almdal
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-05Revert "Allow a theme to override the page refresh mechanism. Create a new"Tim Almdal
This reverts commit 1f014aae6c16bbda62d8f5937180f11ccb0eb1b1.
2009-07-31Simplify getViewportSize function to use the jQuery height and width functionsTim Almdal
2009-07-30Move the getViewportSize method to gallery.common.jsTim Almdal
2009-07-27Allow a theme to override the page refresh mechanism. Create a newTim Almdal
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-11Don't close the dialog window after we successfully complete anBharat Mediratta
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-06-29Ticket 86 (addendum) - Guard against themes that don't define MSG_CANCEL and ↵Andy Staudacher
add the message to admin_default as well.
2009-06-29Fix for ticket 86 - Make Cancel button in doalogs localizable.Andy Staudacher
2009-06-28Use Number() instead of toFixed().. FF 3.x doesn't seem to like toFixed() on ↵Bharat Mediratta
native types.
2009-06-22Strip carriage returnsBharat Mediratta
2009-06-22Strip carriage returnsBharat Mediratta
2009-06-20Update jquery-ui to 1.7.2Bharat Mediratta
2009-06-20Update to 1.4.2Bharat Mediratta
2009-06-20Update to 1.2.7Bharat Mediratta
2009-06-20Reapply the change from aaac2441241df5565b4fa1562065a387e56578e1 whereBharat Mediratta
we comment out the code that prevents the file uploader code from aborting when there are input elements named "submit".
2009-06-20Updated jquery.form to a9c8862544aa3dde81c0aa1554edce148b31742d (2.28)Bharat Mediratta
2009-06-16Move the show_full_size code into gallery/lib so that it's generallyBharat Mediratta
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-14Move jquery local scroll module from default theme to lib, only load it if ↵Chad Kieffer
viewing photo view. White space cleanup, removed debug print from template.
2009-06-08Keep status messages. Users click away and may miss them, especially with ↵Chad Kieffer
tasks which take longer to complete.
2009-06-04Remove console.log() calls, they break some browsersBharat Mediratta
2009-05-26Refresh of SWFUpload 2.2.0.1 (functionally the same as before)Bharat Mediratta
2009-05-26Fixed docblock referenceChad Kieffer
2009-05-26Split out re-used JavaScript for common functions (messages, valign), panel ↵Chad Kieffer
toggle, and forms to external files.
2009-05-01Updated to jQuery 1.3.2, needs to be pushed upstream.Chad Kieffer
2009-04-16Add the ui.jquery selectable plugin by copying the new vendor version to trunkTim Almdal
2009-04-06Update SWFUpload to v2.2.0.1Bharat Mediratta
2009-03-26Guard the calling of the form closing event so its not called if thereTim Almdal
is no form.
2009-03-24Add a "form_closing" custom event to the dialog processing. ThisTim Almdal
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-18Added rotate cc and ccw icons to themeroller theme and css to default theme, ↵Chad Kieffer
applied to quick pane rotate buttons. Hope that jQuery UI includes rotate icons eventrually so we don't have to maintain this.
2009-03-17Remove windows line endingsBharat Mediratta
2009-03-17Updated lib/swfupload to SWFUpload v2.2.0 Beta 5Bharat Mediratta
2009-03-17Switch from using SimpleUploader to using swfUpload as our flash basedBharat Mediratta
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-08Pass on_success through to ajaxify_dialog, resolving an bug createdBharat Mediratta
in r20302.