diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-31 09:42:09 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-31 09:42:09 -0700 |
commit | 69ef76530d1a37ba563859b61376bffa3db4d403 (patch) | |
tree | 8f861eecd7f0a61b1cf6faa44d4144928c51e3f5 | |
parent | 90465012d18b9d795d315e2fdf0461b39716b0a5 (diff) |
Re enable the submit button if the dialog processing resends the form because of an error.
-rw-r--r-- | lib/gallery.dialog.js | 2 |
1 files changed, 2 insertions, 0 deletions
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') { |