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

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