diff --git a/services/web/public/coffee/components/inputSuggestions.coffee b/services/web/public/coffee/components/inputSuggestions.coffee index b48df8391c..a7f36a22a3 100644 --- a/services/web/public/coffee/components/inputSuggestions.coffee +++ b/services/web/public/coffee/components/inputSuggestions.coffee @@ -45,7 +45,7 @@ define [ controller: inputSuggestionsController template: """
-
+
diff --git a/services/web/public/coffee/main/affiliations/controllers/UserAffiliationsController.coffee b/services/web/public/coffee/main/affiliations/controllers/UserAffiliationsController.coffee index bc3890081a..d503fb850f 100644 --- a/services/web/public/coffee/main/affiliations/controllers/UserAffiliationsController.coffee +++ b/services/web/public/coffee/main/affiliations/controllers/UserAffiliationsController.coffee @@ -29,7 +29,8 @@ define [ UserAffiliationsDataService.getUniversityDomainFromPartialDomainInput(userInputLocalAndDomain.domain) .then (universityDomain) -> - if userInputLocalAndDomain.domain == universityDomain.hostname + currentUserInputLocalAndDomain = _matchLocalAndDomain $scope.newAffiliation.email + if currentUserInputLocalAndDomain.domain == universityDomain.hostname $scope.newAffiliation.university = universityDomain.university $scope.newAffiliation.department = universityDomain.department else