put domain into popup for user info

This commit is contained in:
Henry Oswald 2014-06-16 18:41:44 +01:00
parent 478a20be1f
commit 444e6cbd12

View file

@ -46,7 +46,8 @@ define ["libs/algolia", "libs/angular", "libs/angular-autocomplete/angular-autoc
$scope.updateInstitutionsList = (a)->
Institutions.search $scope.userInfoForm.institution, (err, response)->
$scope.institutions = _.pluck response.hits, "name"
$scope.institutions = _.map response.hits, (institution)->
"#{institution.name} <span class='muted'>#{institution.domain}</span>"