fixed autocomplete issue with adding organizations to authorships

This commit is contained in:
Tim Worrall 2014-06-18 16:34:23 -04:00
parent 1a57f84adf
commit 55a6ad5204

View file

@ -581,6 +581,10 @@ var addAuthorForm = {
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" ) {
this.personSection.hide();
this.orgSection.show();
this.orgNameWrapper.show();
// person fields
this.personRadio.attr('checked', false); // needed for reset when cancel button is clicked
this.acSelector.removeClass("acSelector");