fixed autocomplete issue with adding organizations to authorships
This commit is contained in:
parent
1a57f84adf
commit
55a6ad5204
1 changed files with 5 additions and 0 deletions
|
@ -581,6 +581,10 @@ var addAuthorForm = {
|
||||||
|
|
||||||
this.labelField.val(name);
|
this.labelField.val(name);
|
||||||
}
|
}
|
||||||
|
// If user selected org via autocomplete, clear the org name field
|
||||||
|
if ( this.orgUriField.val() != '' ) {
|
||||||
|
this.orgName.val("");
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -765,6 +769,7 @@ var addAuthorForm = {
|
||||||
if ( authType == "org" ) {
|
if ( authType == "org" ) {
|
||||||
this.personSection.hide();
|
this.personSection.hide();
|
||||||
this.orgSection.show();
|
this.orgSection.show();
|
||||||
|
this.orgNameWrapper.show();
|
||||||
// person fields
|
// person fields
|
||||||
this.personRadio.attr('checked', false); // needed for reset when cancel button is clicked
|
this.personRadio.attr('checked', false); // needed for reset when cancel button is clicked
|
||||||
this.acSelector.removeClass("acSelector");
|
this.acSelector.removeClass("acSelector");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue