summaryrefslogtreecommitdiff
path: root/lib/gallery.dialog.js
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-31 09:42:09 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-31 09:42:09 -0700
commit69ef76530d1a37ba563859b61376bffa3db4d403 (patch)
tree8f861eecd7f0a61b1cf6faa44d4144928c51e3f5 /lib/gallery.dialog.js
parent90465012d18b9d795d315e2fdf0461b39716b0a5 (diff)
Re enable the submit button if the dialog processing resends the form because of an error.
Diffstat (limited to 'lib/gallery.dialog.js')
-rw-r--r--lib/gallery.dialog.js2
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') {