NIHVIVO-1024 When returning from validation error in educational background form (and roles form in repair mode), hide org name validation error if org name field is hidden.
This commit is contained in:
parent
762a32045e
commit
243073d7a2
1 changed files with 3 additions and 9 deletions
|
@ -145,12 +145,7 @@ var customForm = {
|
||||||
// autocomplete type can be determined. If a type selection has been made,
|
// autocomplete type can be determined. If a type selection has been made,
|
||||||
// unhide the acSelector field.
|
// unhide the acSelector field.
|
||||||
} else if (this.typeSelector.length) {
|
} else if (this.typeSelector.length) {
|
||||||
if (this.typeSelector.val()) {
|
this.typeSelector.val() ? this.acSelectorWrapper.show() : this.hideFields(this.acSelectorWrapper);
|
||||||
this.acSelectorWrapper.show()
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.acSelectorWrapper.hide();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -323,8 +318,7 @@ var customForm = {
|
||||||
|
|
||||||
showAutocompleteSelection: function(label, uri) {
|
showAutocompleteSelection: function(label, uri) {
|
||||||
|
|
||||||
this.acSelectorWrapper.hide();
|
this.hideFields(this.acSelectorWrapper);
|
||||||
//this.acSelector.attr('disabled', 'disabled');
|
|
||||||
|
|
||||||
// If form has a type selector, add type name to label. If form has no type selector,
|
// If form has a type selector, add type name to label. If form has no type selector,
|
||||||
// type name is coded into the html.
|
// type name is coded into the html.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue