From 210ba966f8fde3d9285a5492dd9f7ed5eac0b126 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Fri, 28 Aug 2009 18:20:56 -0600 Subject: Fixed issue where button classes and cancel link weren't being re-applied to forms when an open dialog is reloaded. --- lib/gallery.dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/gallery.dialog.js') 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(); -- cgit v1.2.3