From 69ef76530d1a37ba563859b61376bffa3db4d403 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 31 Oct 2009 09:42:09 -0700 Subject: Re enable the submit button if the dialog processing resends the form because of an error. --- lib/gallery.dialog.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/gallery.dialog.js') diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index a3715929..3587108c 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -115,6 +115,8 @@ success: function(data) { if (data.form) { $("#g-dialog form").replaceWith(data.form); + $("#g-dialog form :submit").removeClass("ui-state-disabled") + .attr("disabled", null); self._ajaxify_dialog(); self.form_loaded(null, $("#g-dialog form")); if (typeof data.reset == 'function') { -- cgit v1.2.3