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
|
@ -131,8 +131,8 @@ var customForm = {
|
||||||
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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue