Permalink
Browse files

If submitted form does not validate properly, initialize a new form w…

…ith the correct URL and hide busy indicator.
  • Loading branch information...
selwin committed Sep 7, 2011
1 parent 44ff664 commit 04e7635a826aa8ad62af1e46a334091e1b19a7bf
Showing with 4 additions and 1 deletion.
  1. +4 −1 fiber/static/fiber/js/admin.js
@@ -356,7 +356,9 @@ var ChangeFormDialog = AdminFormDialog.extend({
cache: false,
context: this,
success: function(responseText, statusText, xhr, $form) {
- var response_change_form = new ChangeForm();
+ var response_change_form = new ChangeForm({
+ url: this.admin_form.options.url
+ });
response_change_form.get_form_from_HTML(responseText);
@@ -368,6 +370,7 @@ var ChangeFormDialog = AdminFormDialog.extend({
this.admin_form.set_styling();
this.append_form();
this.admin_form.set_interaction();
+ busyIndicator.hide();
} else {
this.after_action_success(responseText, statusText, xhr, $form);
}

0 comments on commit 04e7635

Please sign in to comment.