From 6f2dcba70d4e47afbb5f1f7253cf014f91e63fc3 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Fri, 3 Sep 2010 21:34:53 +0000 Subject: [PATCH] NIHVIVO-1110 Fix cancel button after undoing an autocomplete selection on grant and educational background form. --- productMods/edit/forms/js/customFormWithAutocomplete.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/productMods/edit/forms/js/customFormWithAutocomplete.js b/productMods/edit/forms/js/customFormWithAutocomplete.js index 70400638..f89ec1fa 100644 --- a/productMods/edit/forms/js/customFormWithAutocomplete.js +++ b/productMods/edit/forms/js/customFormWithAutocomplete.js @@ -130,9 +130,9 @@ var customForm = { this.button.show(); this.setButtonText('new'); 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() { customForm.clearFormData(); // clear any input and validation errors customForm.initFormTypeView();