NIHVIVO-1110 Fix cancel button after undoing an autocomplete selection on grant and educational background form.
This commit is contained in:
parent
62dc701913
commit
6f2dcba70d
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue