NIHVIVO-1110 Fix cancel button after undoing an autocomplete selection on grant and educational background form.

This commit is contained in:
rjy7 2010-09-03 21:34:53 +00:00
parent 62dc701913
commit 6f2dcba70d

View file

@ -131,8 +131,8 @@ var customForm = {
this.setButtonText('new');
this.setLabels();
if (this.formSteps > 1) { // includes this.editMode == 1
this.cancel.unbind('click');
if (this.formSteps > 1) {
this.cancel.click(function() {
customForm.clearFormData(); // clear any input and validation errors
customForm.initFormTypeView();