diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-08-28 18:20:56 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-08-28 18:20:56 -0600 |
commit | 210ba966f8fde3d9285a5492dd9f7ed5eac0b126 (patch) | |
tree | a82538be977c7fe3db17b84d26c11b7e533f44b8 /lib | |
parent | 974e8f9547284e052eef2d8b9668f9e85c585b49 (diff) |
Fixed issue where button classes and cancel link weren't being re-applied to forms when an open dialog is reloaded.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gallery.dialog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index d1ea3edf..67f3f02d 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -109,13 +109,13 @@ if (data.form) { $("#gDialog form").replaceWith(data.form); self._ajaxify_dialog(); - self._trigger("form_loaded", null, $("#gDialog form")); + self.form_loaded(null, $("#gDialog form")); if (typeof data.reset == 'function') { eval(data.reset + '()'); } } if (data.result == "success") { - if (data.location) { + if (data.location) { window.location = data.location; } else { window.location.reload(); |