summaryrefslogtreecommitdiff
path: root/lib/gallery.panel.js
AgeCommit message (Collapse)Author
2013-05-07#2065 - Fix problems with double-ajaxifying of dialogs.shadlaws
Change all jQuery-ui widget _init() functions to _create() functions.
2013-02-23#2013 - Clean up gallery.panel.js (formatting only)shadlaws
- fixed whitespaces
2013-02-23#2013 - Clean up gallery.panel.js.shadlaws
- prepend "data-" in front of non-standard attr to be more standards compliant.
2013-02-12Updated success callbacks for gallery.panel.js and gallery.dialog.js - no ↵shadlaws
longer need to save xhr ahead of success. Tested and seems to work well, even with watermarks on Chrome (previously an issue).
2011-02-24Revert overeager escaping introduced inBharat Mediratta
https://github.com/gallery/gallery3/commit/bb35aefffbc287efc9823abd4b0e451b86c37378 in an attempt to resolve #797. Fixes #1640.
2010-07-31Full pass over all the JSON encoding and JS dialog code. We now abideBharat Mediratta
by the following rules: 1) An initial dialog or panel load can take either HTML or JSON, but the mime type must accurately reflect its payload. 2) dialog form submits can handle a pure HTML response, but the mime type must also be correct. This properly resolves the problem where the reauth code gets a JSON response first from the reauth code, and then an HTML response when you reauth and continue on to a given form -- try it out with Admin > Settings > Advanced. 3) All JSON replies must set the mime type correctly. The json::reply convenience function does this for us. 4) By default, any HTML content sent back in the JSON response should be in the "html" field, no longer the "form" field. The combination of these allows us to stop doing boilerplate code like this in our controllers: // Print our view, JSON encoded json::reply(array("form" => (string) $view)); instead, controllers can just return HTML, eg: // Print our view print $view; That's much more intuitive for developers.
2010-07-31Sometimes in dialogs, the form is wrapped in a view to provide additional ↵Tim Almdal
information. We need to replace the contents of the entire dialog, not just the form, otherwise, there could be text floating around that doesn't make sense.
2010-07-31Partial fix for #1225. Change the dialog and panel handling to look at the ↵Tim Almdal
mime type returned to determine the content type.
2010-07-20Modify the panel code to expect a JSON data package to mirror what we did in ↵Bharat Mediratta
gallery.dialog.js in 9538b3888dadbe3a6fac72e2a97f97c7db3d86f2
2009-10-23Put logic into gallery.panel.js so that when the panel is submitted, the ↵Tim Almdal
submit button is disabled and the user is no longer able to submit multiple clicks.
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-09-06Restore button text for any open panels when we open a new panel.Bharat Mediratta
Fixes ticket #723.
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-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-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-06-04Remove console.log() calls, they break some browsersBharat 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.