Skip to content

Commit

Permalink
*8705* re-enable form controls when a server-side error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
jnugent committed May 7, 2014
1 parent 92edc5c commit 7d48846
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/controllers/form/AjaxFormHandler.js
Expand Up @@ -136,6 +136,9 @@
$form = this.getHtmlElement();
$form.replaceWith(processedJsonData.content);
}
} else {
// data was false -- assume errors, re-enable form controls.
this.enableFormControls();
}

$(this.getHtmlElement()).find('.pkp_helpers_progressIndicator').hide();
Expand Down

0 comments on commit 7d48846

Please sign in to comment.